Metadata-Version: 2.1
Name: django-relativedeltastore
Version: 0.9.2
Summary: Django model field to store relativedelta from python-dateutil
Home-page: https://github.com/anfema/django-ses-sns-tracker
Author: anfema GmbH
Author-email: contact@anfe.ma
License: MIT
Platform: UNKNOWN
Classifier: Framework :: Django :: 2.2
Classifier: Framework :: Django :: 3.1
Classifier: Framework :: Django :: 3.2
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# django-relativedeltastore

A Django model field to store
[dateutil.relativedelta.relativedelta](http://dateutil.readthedocs.io/en/stable/relativedelta.html).

The field is a subclass of [JSONField](https://docs.djangoproject.com/en/dev/ref/contrib/postgres/fields/#jsonfield)
and simply stores the kwargs of a [relativedelta](http://dateutil.readthedocs.io/en/stable/relativedelta.html) instance.

The field is mainly meant to store [relativedelta](http://dateutil.readthedocs.io/en/stable/relativedelta.html).
The package [django-relativedelta](https://github.com/CodeYellowBV/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`, `years` … `microseconds`).
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`


