On Tue, 5 Jun 2012 12:33:36 -0700 (PDT), Jesus Noland
<jesusnoland@gmail.com> declaimed the following in
gmane.comp.python.django.user:
> Hello everyone,
>
> I am using Django 1.3 on Python 2.7 and I have a field in a model setup
> like this:
>
> date = models.DateTimeField(auto_now=True, auto_now_add=True)
>
>
> now I would like to know how to get the last modified date from this field if my model
>
> is called 'm':
>
>
> m.date.last_modified ???
>
Just retrieve the date field... It should be just a Python datetime
object. There is no "last_modified" attribute; merely that the datetime
is automatically updated whenever the record is saved.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment