Opened 8 years ago

Closed 8 years ago

#28247 closed New feature (duplicate)

Don't require last_login property on custom user models

Reported by: Linus Lewandowski Owned by: nobody
Component: contrib.auth Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Right now, custom user models are required to provide last_login property - because django.contrib.auth.models always sets up a user_logged_in handler that updates this field.

It's trivial to add a try/except that'll make it not required.

Attachments (1)

0001-Don-t-require-last_login-property-on-custom-user-mod.patch (859 bytes ) - added by Linus Lewandowski 8 years ago.

Download all attachments as: .zip

Change History (3)

comment:2 by Tim Graham, 8 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #26823.

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