In my Django project, I have the following model:
class Examine(models.Model):
name = models.CharField(max_length=45)
date = models.DateField(blank=True, null=True)
My goal is to come up with a queryset that would enable me to render a template with list of dates and the examines for the date - if any. For example, I have three examines in the DB:
Math - 01 January 2019,
History - 03 January 2019
Geoghraphy - 03 January 2019
and I am interested in the date interval January 1 to January 4 2019. THe output should be:
January 1
Math
January 2
No exams
January 3
History
Geography
January 4
No exams
I have two years of experience with Django ORM, but can't even submit any of my attempts of how I tried to implement this. I have no ideas. Is it possible in Django ?