Reputation: 271634
picture_url = models.CharField(max_length=2000)
Upvotes: 1
Views: 180
Reputation: 311476
You'll need to add null=True
if the column can be null:
picture_url = models.CharField(max_length=2000, null=True)
Upvotes: 3
Reputation: 2110
By default fields have null
set to False
try this
picture_url = models.CharField(max_length=2000, blank=True)
http://docs.djangoproject.com/en/1.1/ref/models/fields/#null
Upvotes: 0