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.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/e8017c8f-b741-4763-990c-2dd19fb24223%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.