Skip to main content

Django model field to store relativedelta from python-dateutil

Project description

django-relativedeltastore

A Django model field to store dateutil.relativedelta.relativedelta.

The field is a subclass of JSONField and simply stores the kwargs of a relativedelta instance.

The field is mainly meant to store relativedelta. The package django-relativedelta provides better query support (for relative units since it uses a sql INTERVAL).

The basic arguments for relative and absolute units are supported (year, yearsmicroseconds). Currently not supported are: weekday, leapdays, yearday & nlyearday

The package also provides a form field to edit the value of RelativeDeltaStoreField with a custom serialization format (configurable): 1hour +1days -1seconds

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-relativedeltastore-0.9.2.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

django_relativedeltastore-0.9.2-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page