Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A custom field that can store a date with flexible granularity (i.e. only year, year+month, or full date)
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
flexibledatefield
.project
.pydevproject
README
__init__.py
__init__.pyc
manage.py
settings.py
settings.pyc
setup.py
urls.py

README

django-flexibledate is designed to allow you to enter dates which are not (necessarily) exact.

For example, you can enter a date of 2011, or April 2011. You can also enter a date of April 22, 2011. 
An example usage might be storing the published dates for various publications where no exact date is given.

To use it, simply add "flexibledate" as a django app. Then, you can incorporate it in a model like so:

    from django.db import models
    from flexibledate.fields import FlexibleDateField

    class Publication(models.Model):
        date_published = FlexibleDateField()
        
Flexible date field automatically uses its own widget which allows you to enter the year 
along with (optionally) the month and day.
Something went wrong with that request. Please try again.