views:

156

answers:

1

Can a field of type models.PositiveIntegerField contain a 0 value? I'm doing something like:

points = models.PositiveIntegerField(default=0)

Thanks,

I know I should try ir myself, but I haven't a Django environment here.

+1  A: 

Yes, it can. It is debatable whether it should--there is a longstanding bug report: http://code.djangoproject.com/ticket/7609

Michael Greene