Hello,

I would like to provide some instructions if user come after gap of 1 week 
or so. I was hoping that I can do that by -

(datetime.now()-user.last_login) > timedelta(days=7)

Though by the time it comes to my view last login is already updated by 
auth user model of django, so in my application code when I try to find 
this difference it always comes 0 day because last_login time is already 
updated with now datetime. 

Is there any other way to get this information? 


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to