#28898 closed Bug (fixed)
Admin check prohibits using a OneToOneField in autocomplete_fields
Reported by: | Lachlan Cannon | Owned by: | Rodrigo Pinheiro Marques de Araújo |
---|---|---|---|
Component: | contrib.admin | Version: | 2.0 |
Severity: | Release blocker | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
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
Attachments (1)
Change History (8)
comment:1 Changed 6 years ago by
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 Changed 6 years ago by
Owner: | changed from nobody to Rodrigo Pinheiro Marques de Araújo |
---|---|
Status: | new → assigned |
Changed 6 years ago by
Attachment: | admin-autocomplete-onetoone.patch added |
---|
comment:4 Changed 6 years ago by
For everyone else waiting for this: SILENCED_SYSTEM_CHECKS = ['admin.E038']
is a good-enough workaround for now :)
comment:5 Changed 6 years ago by
Has patch: | set |
---|
Note: See
TracTickets for help on using
tickets.
Patch - first version