Menu

#7 Mark set blank and set null in the django models

runnable
open
2011-06-29
2011-06-29
Adam Voss
No

We have some fields that are optional; however, the models (and hence the DB) do not allow for that. Here is an example on how to specify the model:

mothers_maiden_name = models.CharField(maxlength=50,null=True, blank=True)

http://knuth.luther.edu:8000/ticket/56

Discussion

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB