Answer the question
In order to leave comments, you need to log in
How to make a filter by relay (by the latest added or in a given range)?
Hello, I have this model:
class Statistics(models.Model):
date_scan = models.DateTimeField(blank=True, auto_now_add=True)
rank = models.FloatField(blank=True)
class Works(models.Model):
...
class RelStat(models.Model):
work = models.ForeignKey(Works, related_name='relstat')
statistics = models.ForeignKey(Statistics, related_name='relstat')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question