Opened 5 years ago

Closed 5 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: master
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


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.


Change History (2)

comment:1 Changed 5 years ago by Tim Graham

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

comment:2 Changed 5 years ago by Tim Graham <timograham@…>

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