Friday, November 26, 2010

Re: Custom Login using model form

On Nov 26, 8:00 am, PRANAV HEGDE <pranavhegde...@gmail.com> wrote:
> Hi Daniel,
>
> Yeah I had a thought like that. I thought I could leave the validation
> to the model.
> Turns out model form comes handy only if your modifying or updating
> something in the database, as you said.
> Simple form can also enforce constraints but I just have to write
> another form with same constraints as the model.
>
> Thanks for the suggestion.
>
> Warm Regards,
> Pranav.

The thing to realise is that when it comes to login forms, the
'validation' is performed by the authentication backend, not the form
itself.
--
DR.

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment