Re: Field.blank alternative

2009-09-21 Thread Léon Dignòn
You do this in the validation: http://docs.djangoproject.com/en/dev/ref/forms/validation/#cleaning-and-validating-fields-that-depend-on-each-other -leond On Sep 21, 11:34 pm, lance wrote: > Newbie question... > > In defining my model, I have two CharFields of a given class.

Field.blank alternative

2009-09-21 Thread lance
Newbie question... In defining my model, I have two CharFields of a given class. The business logic requires that one or both of the fields be filled in. Either of the fields can be blank as long as the other one isn't. Is there a Django best practice way to solve this? Should this be handled