Solution 1:
You can get latest create obj like this:
obj = Foo.objects.latest('id')
more info here
Solution 2:
In Django 1.6
obj = Foo.objects.latest('id')
obj = Foo.objects.earliest('id')
You can get latest create obj like this:
obj = Foo.objects.latest('id')
more info here
In Django 1.6
obj = Foo.objects.latest('id')
obj = Foo.objects.earliest('id')