Opened 4 years ago

Closed 4 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

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 Changed 4 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 4 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