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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d79c40f4f0bceded9f76962b3f27440cb2c78132af02c838d332237495a0997c |
|
MD5 | 726e1882e7d3666712b492288151716b |
|
BLAKE2b-256 | b655165d6a2134cb8ee0c321733279682ab647e090e7952166b14eb68bd1202b |
Hashes for django_relativedeltastore-0.9.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0c3f17ee48bf15b5dd593be6b94ab2821375f3a75fe5420695903371a0a4e9d |
|
MD5 | 3f07af31b24bd6fc460efddd709cc714 |
|
BLAKE2b-256 | 5ab7ea129165a5995a1f1e125df0922999b5c7eec23ddb3cc6d1bc0283ac8bd2 |