Opened 9 years ago

Closed 9 years ago

#25054 closed Cleanup/optimization (fixed)

Use app-namespaced model name when raising swapped model AttributeError

Reported by: Chris Lamb Owned by: nobody
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

This is useful if you have swapped a model for one with the same name but
in another app - "User has been swapped with User", etc.

PR https://github.com/django/django/pull/4944

Change History (2)

comment:1 by Tim Graham, 9 years ago

Component: UncategorizedDatabase layer (models, ORM)
Triage Stage: UnreviewedReady for checkin
Type: New featureCleanup/optimization
Version: 1.8master

comment:2 by Tim Graham <timograham@…>, 9 years ago

Resolution: fixed
Status: newclosed

In 61f3e22:

Fixed #25054 -- Added app_label to swapped model AttributeError

Note: See TracTickets for help on using tickets.
Back to Top