[patch] validation for missing core=True in ForeignKey relations wrong
|Reported by:||Owned by:||Adrian Holovaty|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
If you have a Foreign Key relation with edit_inline=False, manage.py validate complains if you don't have a core=True in the related model, like this:
email.nextrech: At least one field in Nextrech should have core=True, because it's being edited inline by tarifkunde.Tarifkunde.
It shouldn't: No edit_inline, no core=True needed.
The original version of get_validation_error did not check edit_inline at all, that was the whole problem.
Change History (7)
comment:5 Changed 10 years ago by
|Component:||django-admin.py → Template system|
|milestone:||→ Version 1.1|
|priority:||high → low|
|Severity:||normal → major|
|Type:||defect → enhancement|