¡@

Home 

python Programming Glossary: creation_date

Django Query using .order_by() and .latest()

http://stackoverflow.com/questions/3736964/django-query-using-order-by-and-latest

and .latest I have a model class MyModel models.Model creation_date models.DateTimeField auto_now_add True editable False class.. auto_now_add True editable False class Meta get_latest_by 'creation_date' I had a query in my view that did the following instances MyModel.objects.all.. did the following instances MyModel.objects.all .order_by 'creation_date' And then later I wanted instances.latest but it would not give..