Skip to content

A custom field that can store a date with flexible granularity (i.e. only year, year+month, or full date)

Notifications You must be signed in to change notification settings

wintercircle/django-flexibledatefield

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A custom field that can store a date with flexible granularity (i.e. only year, year+month, or full date)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%