I have a django model that looks like this:
class MyModel(Model):
name = CharField(...)
version = IntegerField(...)
other_stuff = ...
unique_together = ('name', 'version')
I want to be able to query for all of the most recent versions of each name, but omitting all older versions for any given name.
Is this possible with Django models? If so, what would that look like?