Django Admin: Adding new tuples: Does not allow if fields are null.
|Reported by:||koranthala||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I reproduced this in Django 1.1, but I had seen this in earlier versions too.
Using the Django Admin page, I am trying to add new tuples to the system.
In one of my Models, I have a field with null=True. But, when I try to add that tuple with that field as null, it does not allow it to be added.
Rather it gives an error '* This field is required'.
I have attached an image and the Model alongwith.
class User(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=256) library = models.ForeignKey(Template, null=True)
Change History (4)
Changed 8 years ago by anonymous
comment:1 Changed 8 years ago by jacob
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Resolution set to invalid
- Status changed from new to closed