Opened 13 years ago

Last modified 9 years ago

#16867 closed New feature

Validate GenericForeignKey's object_id_field/content_type_field options — at Initial Version

Reported by: Jacob Owned by: nobody
Component: contrib.contenttypes Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

See #7800

The object_id_field and content_type_field options to GenericForeignKey aren't validated my model validation, which means that if you make a mistake or typo weird stuff happens. ./manage.py validate should complain about that.

I think this is probably blocking on the ability to plug into model validation since GFK's are in contrib and shouldn't have code in core.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top