Opened 2 years ago

Closed 2 years ago

#19256 closed Cleanup/optimization (duplicate)

Provide class-based login view

Reported by: benoitbryon 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 Changed 2 years ago by ptone

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

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