#36804: AdminSite.get_model_admin raises AttributeError when `to` model of a
ForeignKey is defined as a string
--------------------------------------+------------------------------------
Reporter: Parth Paradkar | Owner: (none)
Type: Cleanup/optimization | Status: new
Component: contrib.admin | Version: 5.2
Severity: Normal | Resolution:
Keywords: admin | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Jacob Walls):
* stage: Unreviewed => Accepted
* type: Bug => Cleanup/optimization
Comment:
Thanks. I'd suggest `{model!r}` instead of `{model}` but otherwise LGTM.
--
Ticket URL: <https://code.djangoproject.com/ticket/36804#comment:1>
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/0107019b278f1ee3-dae4b5f9-fbe5-4720-8fa0-4a51b13bf59e-000000%40eu-central-1.amazonses.com.