Hi,
have a look at the documentation of field options in models:
http://docs.djangoproject.com/en/dev/ref/models/fields/#blank
class Foo(models.Model):
this_is_required = models.CharField(...)
this_not = models.CharField(..., blank=True)
Regards,
Reiner
On Mar 9, 8:37 am, khsing <[email protected]> wrote:
> I want create a model that contain two field and there is one of two
> field can not be blank.
>
> how to do it?
>
> thanks.
>
> --
> A man live in jail and want to break.http://blog.khsing.net
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---