I have such a model
class Report(models.Model): user = models.ForeignKey(Profile, related_name='user_report') department = models.ForeignKey(Department, related_name='report') created_date = models.DateTimeField(default=timezone.now()) edited_by = models.ForeignKey(User) edited_at = models.DateTimeField(default=timezone.now()) so I need to filter this model by week, that is, as a result, I should have it, the first week of the year, so much Report, the second week, so many, etc. I can of course do it manually, but it will not work so nicely I want instead, I did this DB.
weekfield in the model - andreymal