borough peter wrote:
Yet the admin interface doesn't allow me to leave it empty:
IntegrityError at /xxx/xx/xxx/add/
xxx_x.myfloat may not be NULL
Hi,
blank=True allows admin interface input to be an empty string, while
null=True allows it to be NULL in the database. You want both.
C
Hi list,
Yet another django newbie
In my model I would like to have a float field that is
allowed to be empty, so I write:
class xxx( models.Model ):
myfloat = models.FloatField( decimal_places=6,
max_digits=9, blank=True )
Yet the admin interface doesn't allow me to leave it empty:
I
2 matches
Mail list logo