#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 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 :)
Version 0, edited 7 years ago by (next)
comment:5 by , 7 years ago
Has patch: | set |
---|
Note:
See TracTickets
for help on using tickets.
Patch - first version