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
, 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
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
Built Distribution
Hashes for django-relativedeltastore-0.9.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0527ba35973733247c1a300a640c79e2237cb8e504e646ca3e57171436832160 |
|
MD5 | 73bb338398e8a1faa726e079140b5b28 |
|
BLAKE2b-256 | 5327e39b6b9e905e6ae28accbca5e0e32a186d415dbf3d9c03efe526b711ccdd |
Hashes for django_relativedeltastore-0.9.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59f95f8e6c2795809a07eb80f3155da9e4b1ffa5535d1526c16d52098187be3f |
|
MD5 | 513d60c72cd1a2fd53a6ce29f57b3bb1 |
|
BLAKE2b-256 | 76b33bed771154a02a87a17af4e4f5066a476c3deff2817a06a0a1d359b3c1ac |