Re: Field.default optional attribute is not working properly

2008-12-29 Thread Alex Koshelev
Default values stay only on python layer. For example you can specify any callable as default value so it cannot be "mapped" into DLL. On Mon, Dec 29, 2008 at 3:50 PM, Rama wrote: > i have a model class as below. *(please observe the red color lines)* > > class

Field.default optional attribute is not working properly

2008-12-29 Thread Rama
i have a model class as below. *(please observe the red color lines)* class NewsEntry(models.Model): *noofshares = models.IntegerField(default=0)** ispopular = models.BooleanField(default=0) * pdate = models.DateField(db_index=True) publisheddate =