If I have a model with ...
created = models.DateTimeField(auto_now_add=True)
... and in class Meta
ordering = ['-created']
Is it true that with multiple records where the query search params are
identical the first record returned by the query will always be the most
recent?
Postgres
Thanks
Mike
--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6e8deada-5376-7865-8531-6aaf59c6d0e6%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment