On 27-11-2005, at 3:21, Kenneth Gonsalves wrote:

so how do you prevent that? i dont like to waste code checking if
all the mandatory fields are filled - i want postgres to do that.
Looking at the table, there is no mention of a default value.

Can you post your model? It seems to me that you have something like this:

name = meta.CharField(maxlength=200, blank=True)

If you want to check for empty data you can just use:

name = meta.CharField(maxlength=200)

and django itself will check that name field is not *blank* or *NULL*.

---
Nebojša Đorđević - nesh
Studio Quattro - Niš - SCG

http://djnesh.blogspot.com/  |  http://djnesh-django.blogspot.com/
Registered Linux User 282159 [http://counter.li.org]



Reply via email to