Hello,
I have DB with courses and each course has many dates (with starting and ending date). I'm trying to make report with starting and ending course dates in 10 days. The problem is, that one day courses usually don't have ending date (date_stop) filled. Right now i'm using query:
coursedates_ending = CourseDate.objects.all().filter(date_stop__range=[today, today_plus_ten]).order_by('date_stop')
to get courses ending in 10 days. But is it possible to include courses without ending date and for this courses to look at the date_start? Or is it possible to update coursedates_ending with such courses?
Thanks for help or tips how to do it django-way.