On 9/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > i have a class which have two field: > author = models.ForeignKey(User) > body = models.TextField(blank=False,null=False) > i found in admin interface, i cannot save a record with blank content > for body,which will rise a error. > but in user interface, i can save it with blank content. > > does someone know how to rise a error for blank body? thx
model_instance.validate() --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---