On Wednesday, 01 October 2008 08:59:00 Merrick wrote:
> Also how do I access the form submission if not through
> cleaned_data.get?
I have found this works, but I can't say in what cases:
name = form.data['fullname']
\d
--~--~-~--~~~---~--~~
You received this
Yeah thanks, I guess I wasn't clear. I realize I don't have access to
cleaned_data but I want to validate my url the same way as django does
by default on a form - any pointers on how to accomplish that?
Also how do I access the form submission if not through
cleaned_data.get?
On Sep 30,
My ModelForm has two input fields url and code, and I raise a
ValidationError if the code contains anything other than letters,
numbers and dashes. My logic looks something like this:
if form.is_valid():
...
return render_to_response('new.html', {'code': new.code})
if ValueError:
if
3 matches
Mail list logo