| Age | Commit message (Collapse) | Author |
|
|
|
unbounded decimal ranges.
Co-authored-by: Aman Sharma <210100011@iitb.ac.in>
|
|
datetime.UTC was added in Python 3.11.
|
|
|
|
|
|
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
|
|
|
|
Remaining test case ensures that uses of the alias are mapped
canonically by the migration writer.
|
|
|
|
|
|
This improves accessibility for screen reader users.
|
|
range fields.
|
|
Fixed inner imports per isort 5.
isort 5.0.0 to 5.1.0 was unstable.
|
|
|
|
SmallIntegerField, and DecimalField.
|
|
for RangeFields.
Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
|
|
RangeFields.
_get_FIELD_display() crashed when Field.choices was unhashable.
|
|
lists and tuples.
|
|
|
|
|
|
|
|
when the right hand side is the same type.
Thanks Tilman Koschnick for the report and initial patch.
Thanks Carlton Gibson the review.
Regression in 6b048b364ca1e0e56a0d3815bf2be33ac9998355.
|
|
Follow up to 0ce2ad9ca4623cfd6dc2515430c0ae8a1717a607.
|
|
|
|
|
|
|
|
make_aware()/naive.
|
|
|
|
This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda
because try/except performs better.
|
|
|
|
Thanks Mariusz Felisiak and Tim Graham for polishing the patch.
|
|
|
|
|
|
Used the same test and fix as in #25867.
This required initializing base_field in RangeField.__init__,
not when setting the attribute.
|
|
Also added tests for HStoreField and JSONField.
Thanks Aleksey Bukin for the report and Tim Graham for the initial patch and
the review.
|
|
|
|
|
|
|
|
|
|
|
|
Note this means the serialization of e.g. IntegerRangeField now has
strings for lower and upper, so use to_python when they came back in
(same behaviour as ArrayField, hopefully, from where I also got the
set_attributes_from_name function).
|
|
Use the DjangoJSONEncoder so that datetime and date are encoded
appropriately.
|
|
Provide `contained_by` lookups for the equivalent single valued fields
related to the range field types. This acts as the opposite direction to
rangefield__contains.
With thanks to schinckel for the idea and initial tests.
|
|
|
|
prepare_value()
|
|
|
|
Refs #23879.
|
|
|
|
|
|
|