Hi! In my database I have a DateRangeField. What I want to do is get the date-from and the date-to and store them in a separate variable like example:
date_from =DateRangeField(date_from) date_to =DateRangeField(date_to) of course that code won't work. My data is like this: 'date_range': DateRange(datetime.date(2017, 2, 17), datetime.date(2017, 2, 18), '[)') How do I get those dates? Btw, I've tried indexing this, and it doesn't work. I've tried iterating it, but it also doesn't work. -- 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/848d9e95-4701-4984-bfee-64526621084e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

