Is there a way for me to quickly make certain fields in a ModelForm
class required.  I know this looks back to the model for that
information...

In my case I'm using a FormWizard to display a series of forms.  The
fields shows in some steps are dependent on answers to previous
questions.  So, in my model, sometimes a field will be required,
sometimes not.  Therefore, I'm looking for the form to validate that
part.

I know I can just list the fields like this:

class MyForm(ModelForm):
  my_field = forms.CharField(max_length=80, choices=MY_CHOICES,
required=True)
  ...etc...

...but I don't want to have to repeat all the stuff that just
"happens" automatically...

Keith
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to