Django

Code

Ticket #7220 (new)

Opened 2 months ago

Last modified 1 month ago

Last_login in django.contrib.auth should has null=True

Reported by: veena Assigned to: nobody
Milestone: Component: Contrib apps
Version: SVN Keywords: auth last login user
Cc: Triage Stage: Design decision needed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

I think attribute last_login in model User in django.contrib.auth should has property null=True. Now it has only default=datetime.datetime.now

So, when you create new user the last_login is set to now datetime.

But when you create new user it doesn't mean that user has been logged in. For example in django-registration there is first user created and link to activation is sended to his email. After user activates his account he can login.

Attachments

Change History

06/14/08 02:13:29 changed by Simon Greenhill

  • stage changed from Unreviewed to Design decision needed.

Add/Change #7220 (Last_login in django.contrib.auth should has null=True)




Change Properties
Action