On Thursday, 22 September 2011 21:53:45 UTC+1, John Shaver wrote:
>
> The only way I could find to do is with 'raise ValidationError'()' in
> the clean() function.  However, trying to query my User model to see
> if that username is already take does not work from the clean()
> function.
>
Why not? That is exactly where you should do it. In fact, look at the code 
for Django's own signup form - django.contrib.auth.forms, the clean_username 
method, which does exactly that.
--
DR.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/QVlBbfsphPUJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to