#36151: editable GenericForeignKey
---------------------------+-----------------------------------------
Reporter: James Pic | Type: Uncategorized
Status: new | Component: Uncategorized
Version: 5.1 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------+-----------------------------------------
https://code.djangoproject.com/ticket/35224 made GFK a Field with hard-
coded editable=False
This breaks this very nice feature in Django 5.1
https://django-
autocomplete-light.readthedocs.io/en/master/gfk.html
With exception: cannot be specified for TModel model form as it is a non-
editable field. Check fields/fieldsets/exclude attributes of class
TestAdmin
While I understand this is an interesting default protection for users, it
would also be nice if Django would keep on allowing users to create their
form fields for GFK if they want to, as they could until Django 5.0
--
Ticket URL: <
https://code.djangoproject.com/ticket/36151>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.