#11089: contrib.auth.views.login should take an optional 'form' argument -----------------------------+---------------------------------------------- Reporter: gregplaysguitar | Owner: nobody Status: new | Milestone: Component: Contrib apps | Version: 1.0 Keywords: | Stage: Unreviewed Has_patch: 0 | -----------------------------+---------------------------------------------- I've been using http://www.djangosnippets.org/snippets/74/ to allow users to log in with their email address, and it has been working really nicely except that users with an email address over 30 characters can't log in. The fix is simply to increase the max_length attribute on the login form's username field, however to effect this change I needed to write a custom view, which was a duplicate of contrib.auth.views.login except that it used my custom form.
My proposal is to add an optional 'form' argument to contrib.auth.views.login - that way I could just put {{{ (r'^accounts/login/$', auth_views.login, {'form': MyAuthenticationForm}), }}} in my url conf. -- Ticket URL: <http://code.djangoproject.com/ticket/11089> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---