There is a model in Django that describes the history of a change in a certain value for each user over time.
class UserValueHistory (models.Model): user = models.ForeignKey (...) value = models.FloatField (...) date = models.DateTimeField (...) The task is to get a sample containing users and a value corresponding to the maximum date for each user, using Django tools without using manual SQL writing.