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)
Change History (3)
by , 8 years ago
Attachment: | 0001-Don-t-require-last_login-property-on-custom-user-mod.patch added |
---|
comment:1 by , 8 years ago
Note:
See TracTickets
for help on using tickets.
Gitlab PR: https://github.com/django/django/pull/8555