#28898 closed Bug (fixed)
Admin check prohibits using a OneToOneField in autocomplete_fields
Description ¶
I'm currently trying to port our projects to Django 2.0, and running into a problem dropping our old, outdated autocompletes for the new built in ones, as it appears not to support OneToOne fields.
Looks like the offending line of code is here: https://github.com/django/django/blob/master/django/contrib/admin/checks.py#L107
Change History (8)
comment:1 by , 7 years ago
Severity: | Normal → Release blocker |
---|---|
Summary: | autocomplete_fields doesn't support OneToOneField → Admin check prohibits using a OneToOneField in autocomplete_fields |
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 7 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
by , 7 years ago
Attachment: | admin-autocomplete-onetoone.patch added |
---|
comment:4 by , 7 years ago
For everyone else waiting for this: SILENCED_SYSTEM_CHECKS = ['admin.E038']
is a good-enough workaround for now :)
comment:5 by , 7 years ago
Has patch: | set |
---|
Note:
See TracTickets
for help on using tickets.
Patch - first version