Opened 11 years ago

Closed 11 years ago

#19256 closed Cleanup/optimization (duplicate)

Provide class-based login view

Reported by: Benoît Bryon Owned by: nobody
Component: contrib.auth Version: 1.4
Severity: Normal Keywords: login
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

As of Django 1.4, django.contrib.auth.views.login is based on an old-style functional view.
It could use a class-based view.
It would be easier to create custom login views: mainly reuse more code.

This ticket could be considered as a sub-task of #17209.

Change History (1)

comment:1 by Preston Holmes, 11 years ago

Resolution: duplicate
Status: newclosed

Indeed, this is entirely just a part of #17209 - and doesn't really warrant its own ticket.

You are welcome to contribute a partial patch on the other ticket - but obviously complete patches are preferred.

Note: See TracTickets for help on using tickets.
Back to Top