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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c497cfc00ed908665ed1bfd59d5a363e6717eb01ee0b73a316989d27c2df668d |
|
MD5 | a46cae402d74a44340f8d8ae633a4e53 |
|
BLAKE2b-256 | 404fe61232e5680bfba757da6dbc76433bfdf0253dc9a4f0c6a904ad3cee879a |
Hashes for django_relativedeltastore-0.9.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce431190f3ee5a900f73121104f7f01d2d77dae1498617ac9b48d891a85f174e |
|
MD5 | 2f011137714ff6d6dc1849c0ca3972fd |
|
BLAKE2b-256 | fac59bf770f74d080cc2cc1a477370f896e4d283fb10780daeb195c9bb4443f9 |