Re: Validation and dynamically extending ChoiceField choices

2010-08-17 Thread ringemup
Oh, that sounds like a great way to handle it. Thank you! On Aug 17, 10:10 am, Alex Robbins wrote: > Maybe the ChoiceField should just be a CharField that just uses the > Select widget class? That way it won't have choices hardcoded into the > field validation. Your clean method could check that

Re: Validation and dynamically extending ChoiceField choices

2010-08-17 Thread Alex Robbins
Maybe the ChoiceField should just be a CharField that just uses the Select widget class? That way it won't have choices hardcoded into the field validation. Your clean method could check that the domain is valid. Alex On Aug 16, 1:39 pm, ringemup wrote: > I have a domain search form with two fiel

Validation and dynamically extending ChoiceField choices

2010-08-16 Thread ringemup
I have a domain search form with two fields: a Textarea for inputting a list of domains to check, and a ChoiceField for selecting a domain based on suggestions. The ChoiceField is required, and on the first submission is auto- populated with suggestions based on the domains listed in the textarea.