optional fields in django models -


i have following model in django.

class link(models.model):     name = models.charfield(max_length=100)     url = models.charfield(max_length=100)     tag = models.charfield(max_length=100)      def __unicode__(self):         return self.name 

i need url field optional. how do this?

add attribute blank=true. optionally, can make field nullable null=true.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -