null=True only affects the database representation, you need to set
blank=True. The reason you can do it in the command line is that you
can bypass admin's validators through the command line.

On Aug 2, 11:08 am, Ramashish Baranwal <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I have a model that has a ManyToManyField. When I try to add/edit an
> object of this model in admin, it says that the ManyToManyField is
> required i.e. I can not leave it out. While, from the shell I can
> easily create an object without adding anything in the
> ManyToManyField. The same happens for ForeignKey also even though I
> have set null=True. Is this by design? I am using version 0.96
>
> Thanks,
> Ram


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to