I was always getting the date when the model was last modified when using
'm.date'
On Thursday, June 21, 2012 2:35:02 PM UTC-7, Jesus Noland wrote:
>
> Thank you very much. I am understand now. Sorry it took so long to reply
> back.
>
--
You received this message because you are subscribed to
Thank you very much. I am understand now. Sorry it took so long to reply
back.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/7l1BiweMkwUJ.
To post to thi
Please read:
http://stackoverflow.com/questions/1737017/django-auto-now-and-auto-now-add
On Jun 7, 8:14 am, Jesus Noland wrote:
> Thank you for your reply.
>
> Ok so if I type out:
>
> m = Model.objects.get(id=1)
>
> then
>
> m.date
>
> Will give me the date and time of the last time it was save
Thank you for your reply.
Ok so if I type out:
m = Model.objects.get(id=1)
then
m.date
Will give me the date and time of the last time it was saved? Because that
is not what I am seeing. I am seeing the date the model was first created.
On Tuesday, June 5, 2012 12:33:36 PM UTC-7, Jesus Nolan
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 ???
5 matches
Mail list logo