Bug #17428: Admin formfield validation uses form model instead of registered model. #528

Closed
wants to merge 3 commits into
from

Projects

None yet

2 participants

@per42
per42 commented Nov 17, 2012

The model specified in ModelForm.Meta should not limit the
available fields. This solution uses the same modelform factory used by
the ModelAdmin.get_form method, which adds the registered model's
fields.

https://code.djangoproject.com/ticket/17428

This is my first django core contribution, submitted during the Stockholm sprint. Please double check that I don't break anything. I expect it to be rejected ;)

per42 added some commits Nov 17, 2012
@per42 per42 Bug #17428: Admin formfield validation uses form model instead
of registered model.

The model specified in ModelForm.Meta should not limit the
available fields. This solution uses the same modelform factory used by
the ModelAdmin.get_form method, which adds the registered model's
fields.
05150b3
@per42 per42 Merge remote-tracking branch 'django/stable/1.5.x' into fix/17428 f4f43c5
@per42 per42 Merge remote-tracking branch 'django/stable/1.5.x' into fix/17428 fca8a07
Owner

Ticket has been closed as the validation in question has been removed.

@timgraham timgraham closed this May 31, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment