#36935: ContentType.app_labeled_name fallback omits app label when
model_class() is
None
-------------------------------------+-------------------------------------
Reporter: Marco Aurélio da | Owner: Marco
Rosa Haubrich | Aurélio da Rosa Haubrich
Type: | Status: closed
Cleanup/optimization |
Component: | Version: 5.0
contrib.contenttypes |
Severity: Normal | Resolution: fixed
Keywords: contenttypes | Triage Stage: Ready for
app_labeled_name admin | checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls <jacobtylerwalls@…>):
* resolution: => fixed
* status: assigned => closed
Comment:
In [changeset:"f45bfa5e2801545c1c8787f59bee3867c9928871" f45bfa5]:
{{{#!CommitTicketReference repository=""
revision="f45bfa5e2801545c1c8787f59bee3867c9928871"
Fixed #36935 -- Added fallback in ContentType.app_labeled_name when
model_class() is None.
Updated ContentType.app_labeled_name to include the app_label in its
string representation.
This removed ambiguity for content types whose models were not present in
the current codebase
(for example, when multiple applications share the same database).
Adjusted related tests to reflect the new representation.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/36935#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019c80a2a80f-fe83bba3-dd2f-4d91-a3ab-19b27639292a-000000%40eu-central-1.amazonses.com.