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
Hi Scot,
On 11/05/2014 12:11 PM, Scot Hacker wrote:
> I'm having a strange issue with a pair of ManyToManyFields, where
> they're acting like they're required fields in the admin even though
> they're not.
>
>
> # In models.py
> |
> instructors =models.ManyToManyField(Instructor,blank=True)
I'm having a strange issue with a pair of ManyToManyFields, where they're
acting like they're required fields in the admin even though they're not.
# In models.py
instructors = models.ManyToManyField(Instructor, blank=True)
students = models.ManyToManyField(Profile, blank=True)
I can
3 matches
Mail list logo