On Wednesday, November 5, 2014 11:15:47 AM UTC-8, Carl Meyer wrote:


>
> So because you are manually creating your `instructors` and `students` 
> fields on the form, the `blank=True` in the model has no effect; you 
> need to pass `required=False` to your two form fields. 
>

Got it, right you are - that works fine. 
 

>
> (Because of this, I frequently choose to update/tweak form fields in an 
> overridden `__init__` method of a ModelForm, rather than overriding the 
> fields entirely.) 
>
>
Makes sense! 

Thanks,
./s
 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ff79b372-a8d0-4c39-ab62-277fd4869a1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to