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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f08565fdc40590afc4c107c5415893a89417465da7391cad784ffd6ac0d30467 |
|
MD5 | 4a7a4a2aeb7a47afce38686e72505afa |
|
BLAKE2b-256 | 7c45e08eb748ee3bcd7de76d681d28254d58621b20e4242a9926e3eebc0a2e69 |
Hashes for django_relativedeltastore-0.9.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6f0bc84cb40b5c5a974d7efb03c14ebcac43146ede6318fca6de29f870e9967 |
|
MD5 | 3511958b831972b3f8b5d63c2964e2b7 |
|
BLAKE2b-256 | 707f8dba05ec29836fb4a2031122cf287cf46923e5af47f96516973578b03eda |