summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/test_ranges.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33308 -- Moved psycopg2 imports to the psycopg_any module.Florian Apolloner2022-12-121-2/+5
|
* Fixed #34071 -- Improved error message for Range(Min/Max)ValueValidator.Jack Linke2022-10-051-2/+2
|
* Refs #32339 -- Deprecated default.html form template.David Smith2022-05-171-12/+10
| | | | Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
* Fixed #33656 -- Fixed MultiWidget crash when compressed value is a tuple.L2022-04-261-0/+12
|
* Refs #32365 -- Removed internal uses of utils.timezone.utc alias.Carlton Gibson2022-03-241-3/+4
| | | | | Remaining test case ensures that uses of the alias are mapped canonically by the migration writer.
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-071-11/+16
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-238/+296
|
* Fixed #33235 -- Removed "for = ..." from MultiWidget's <label>.David Smith2021-11-051-4/+4
| | | | This improves accessibility for screen reader users.
* Fixed #27147 -- Allowed specifying bounds of tuple inputs for non-discrete ↵Guilherme Martins Crocetti2021-11-041-3/+92
| | | | range fields.
* Bumped minimum isort version to 5.1.0.David Smith2020-07-301-0/+1
| | | | | Fixed inner imports per isort 5. isort 5.0.0 to 5.1.0 was unstable.
* Refs #30446 -- Removed unnecessary Value(..., output_field) in docs and tests.Simon Charette2020-07-151-1/+1
|
* Fixed #31039 -- Added support for contained_by lookup with AutoFields, ↵Hasan Ramezani2019-12-051-1/+61
| | | | SmallIntegerField, and DecimalField.
* Fixed #29916 -- Added lower_inc, lower_inf, upper_inc, and upper_inf lookups ↵Dulmandakh2019-11-141-0/+24
| | | | | | for RangeFields. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed #24858 -- Added support for get_FOO_display() to ArrayField and ↵Hasan Ramezani2019-11-081-0/+25
| | | | | | RangeFields. _get_FIELD_display() crashed when Field.choices was unhashable.
* Fixed #30095 -- Fixed system check for RangeField/ArrayField.choices with ↵Hasan Ramezani2019-11-051-1/+13
| | | | lists and tuples.
* Fixed #30758 -- Made RangeFields use multiple hidden inputs for initial data.Nasir Hussain2019-09-171-5/+26
|
* Refs #30758 -- Added more tests for postgres.forms.ranges.Nasir Hussain2019-09-171-0/+74
|
* Refs #29598 -- Removed FloatRangeField per deprecation timeline.Mariusz Felisiak2019-09-101-13/+1
|
* Fixed #30621 -- Fixed crash of __contains lookup for Date/DateTimeRangeField ↵Mariusz Felisiak2019-07-101-1/+9
| | | | | | | | 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.
* Used QuerySet.bulk_create() in a couple of postgres tests.oliver2019-03-211-7/+7
| | | Follow up to 0ce2ad9ca4623cfd6dc2515430c0ae8a1717a607.
* Switched TestCase to SimpleTestCase where possible in Django's tests.Tim Graham2018-11-271-5/+5
|
* Fixed #29598 -- Deprecated FloatRangeField in favor of DecimalRangeField.Stefano Chiodino2018-10-021-29/+42
|
* Fixed #29038 -- Removed closing slash from HTML void tags.Jon Dufresne2018-01-211-10/+10
|
* Refs #23668 -- Removed passing default argument of current TZ to ↵Jon Dufresne2018-01-181-1/+1
| | | | make_aware()/naive.
* Fixed #28758 -- Fixed RangeMax/MinValueValidators crash with unbound ranges.Imran Iqbal2017-11-071-2/+8
|
* Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."Tim Graham2017-09-071-2/+3
| | | | This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better.
* Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().Mads Jensen2017-06-281-3/+2
|
* Fixed #26903 -- Fixed __contains lookup for Date/DateTimeRangeField.Mariusz Felisiak2017-02-071-1/+75
| | | Thanks Mariusz Felisiak and Tim Graham for polishing the patch.
* Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne2016-06-161-3/+3
|
* Fixed E128 flake8 warnings in tests/.Tim Graham2016-04-081-2/+4
|
* Fixed #26101 -- Allowed introspection of base_field.model in RangeFieldanna2016-04-031-0/+6
| | | | | | Used the same test and fix as in #25867. This required initializing base_field in RangeField.__init__, not when setting the attribute.
* Fixed #26215 -- Fixed RangeField/ArrayField serialization with None valuesClaude Paroz2016-02-161-0/+11
| | | | | | Also added tests for HStoreField and JSONField. Thanks Aleksey Bukin for the report and Tim Graham for the initial patch and the review.
* Refs #25979 -- Dropped compatiblity for running tests on PostgreSQL < 9.2.Tim Graham2016-02-121-21/+5
|
* Fixed many spelling mistakes in code, comments, and docs.Josh Soref2015-12-031-1/+1
|
* Checked DateTimeTZRange/DateRange conversion in postgres_tests.Nicolas Delaby2015-11-131-0/+2
|
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-1/+2
|
* Switch to aware datetimes in test.Matthew Somerville2015-06-061-4/+4
|
* Instead of using DjangoJSONEncoder, use base_field's value_to_string.Matthew Somerville2015-06-061-1/+1
| | | | | | | 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).
* Fixed #24937 -- fix serialization of Date(Time)RangeField.Matthew Somerville2015-06-051-5/+16
| | | | | Use the DjangoJSONEncoder so that datetime and date are encoded appropriately.
* Fixed #24837 -- field__contained_by=RangeMarc Tamlyn2015-06-041-1/+92
| | | | | | | | 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.
* Name PostgreSQL correctly.Marc Tamlyn2015-05-301-4/+4
|
* Fixed #24841 -- Made BaseRangeField.prepare_value() call base_field's ↵Villiers Strauss2015-05-251-1/+9
| | | | prepare_value()
* Fixed #24714 -- Used more specific assertions than assertEqual in tests.Alasdair Nicol2015-04-281-1/+1
|
* Stopped special-casing postgres-specific testsClaude Paroz2015-04-181-10/+17
| | | | Refs #23879.
* Fixed #24341 -- Added specific error messages to RangeField subclassesforesmac2015-02-201-7/+124
|
* Fixed #24290 -- Skipped postgres_tests if not running with PostgreSQL.Tim Graham2015-02-171-2/+0
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-4/+6
|
* Fixed #24170 -- Implemented decompress for BaseRangeField widgetsNg Zhi An2015-01-221-0/+21
|
* Fixed #24001 -- Added range fields for PostgreSQL.Marc Tamlyn2015-01-101-0/+376
Added support for PostgreSQL range types to contrib.postgres. - 5 new model fields - 4 new form fields - New validators - Uses psycopg2's range type implementation in python