﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
30202	Add a documentation example for DateRangeField	Malik A. Rumi	nobody	"I am requesting that the documentation of this feature be enhanced. Specifically, that it be given a concrete example of usage in a class / model definition. I don't think people like me should be left to guess through trial, error and repeated migrations to figure out how this is supposed to work. To make matters worse, when I was googling just now to find an answer somewhere else, not in the docs, I came cross this -> [https://stackoverflow.com/questions/39400086/setting-django-daterangefield-parameters], which is me asking the same damn question 2 and a half years ago - and no, there is still no answer posted there, either. 

Are we explicitly subclassing class psycopg2.extras.DateRange(lower=None, upper=None, bounds='[)', empty=False)
in our models? Where? What is the syntax for that?  What about blank=True and/or null=True? Where do they go. if they go here at all?  etc. 

I ask because of this error I got:

daterange = models.DateRangeField(start_date, end_date,
AttributeError: module 'django.db.models' has no attribute 'DateRangeField'

This gets an error that 'psycopg2' is undefined, even though it is imported at the top of the file.

daterange = psycopg2.extras.DateRangeField(start_date, end_date,
blank=True, null=True)"	Cleanup/optimization	closed	Documentation	2.1	Normal	invalid	Date, DateRange, DateRangeField		Unreviewed	0	0	0	0	0	0
