ndarville / pony-forum

A modern alternative to ancient forum CMSes like vBulletin and PHPBB in Python on Django. (Alpha stage.) (NB: dotCloud have since removed their free Sandbox tier.)
http://pony-forum.com
26 stars 7 forks source link

Fix up registration forms #68

Closed ndarville closed 11 years ago

ndarville commented 12 years ago
ndarville commented 12 years ago

Stack Overflow:


Because it does not apply to any single field of the form, the validation error for mismatched passwords is attached to the form itself, and so must be accessed via the form’s non_field_errors() method.

ndarville commented 12 years ago

Current problems

+filters in E-Mail Addresses

ndarville commented 12 years ago

CustomRegistrationForm and form tests implemented in f961c40.

The fixture problem was fixed by following the advice in this SO answer reflected in the models.py diff.

ndarville commented 11 years ago

Here we go; the trick was to use the form variable passed.

+filters will be addressed later.