Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (10 sloc) 0.348 kb
Adds filtering by ranges of dates in the admin filter sidebar.
https://github.com/coolchevy/django-datefilterspec
Example:
from django.db import models
import datefilterspec
class Person(models.Model):
date = models.DateTimeField(default=datetime.datetime.now)
date.date_filter = True
class Admin:
list_filter = ['date']
Jump to Line
Something went wrong with that request. Please try again.