Hallo,
I have created a model that looks like this:
========================================================
class ActionType(models.Model):
"""The type of actions that must be taken at a meeting with respect to
agenda points e.g. 'Decide', 'Take Note'etc.
"""
AtpCode = models.CharField(max_length=4)
AtpDesc = models.CharField(max_length=80, null=False)
Active = models.CharField(max_length=1, null=True)
class Meta:
unique_together = (('AtpCode'),)
def __str__(self):
"""Return a string representation of the model"""
return self.AtpCode
========================================================
I am using SQLite as I am developing.
When I deploy this model to SQLite, the Active field is forced to be non-null although explicitly indicate the null=True.
Any idea why this is happening? I have deleted the complete Django project and started from scratch only to find the same scenario; when I click save, I get the following message.
Any advice will be welcomed.
Regards,
Phlip