summaryrefslogtreecommitdiff
path: root/django/contrib/postgres/forms/array.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-41/+58
|
* Fixed #30907 -- Fixed SplitArrayField.has_changed() with removal of empty ↵Pavel Dedik2019-10-281-0/+11
| | | | trailing values.
* Refs #30907 -- Added SplitArrayField._remove_trailing_nulls() hook.Pavel Dedik2019-10-281-10/+15
|
* Fixed #30596 -- Fixed SplitArrayField.has_changed() for non-string base fields.Chason Chaffin2019-07-031-0/+4
| | | | | Thanks to Evgeniy Krysanov for the report and the idea to use to_python. Thanks to Mariusz Felisiak for the test case.
* Refs #29131 -- Fixed space handling in ArrayField's item_invalid message.Hasan Ramezani2018-05-131-2/+2
|
* Refs #29131 -- Made ArrayField error messages index from 1 instead of 0.Hasan Ramezani2018-04-221-4/+4
|
* Fixed #28950 -- Fixed ArrayField.has_changed() for empty values.Vinay Karanam2018-04-071-0/+10
|
* Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking.Nick Pope2017-12-111-1/+1
|
* Fixed #27161 -- Fixed form validation when an ArrayField's base_field has ↵Romulo Furtado2017-06-131-0/+4
| | | | choices.
* Fixed #28192 -- Required passing optional form field args as keyword args.Claude Paroz2017-06-031-3/+3
|
* Fixed #28040 -- Updated SplitArrayWidget to use template-based widget rendering.Tim Graham2017-04-291-8/+9
| | | Thanks Preston Timmons for review.
* Converted usage of ugettext* functions to their gettext* aliasesClaude Paroz2017-02-071-1/+1
| | | | Thanks Tim Graham for the review.
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-6/+6
|
* Refs #23919 -- Removed six.<various>_types usageClaude Paroz2017-01-181-2/+1
| | | | Thanks Tim Graham and Simon Charette for the reviews.
* Fixed #15667 -- Added template-based widget rendering.Preston Timmons2016-12-271-2/+2
| | | | Thanks Carl Meyer and Tim Graham for contributing to the patch.
* Refs #27003 -- Fixed SimpleArrayField crash on converted values.Brandon Chinn2016-11-151-1/+3
|
* Fixed #27186 -- Fixed model form default fallback for MultiWidget, ↵Tim Graham2016-09-221-0/+6
| | | | | | FileInput, SplitDateTimeWidget, SelectDateWidget, and SplitArrayWidget. Thanks Matt Westcott for the review.
* Fixed #26283 -- Fixed removal of trailing nulls for SplitArrayField.quaspas2016-03-121-1/+1
|
* Fixed #25841 -- Handled base array fields validation errors with params.Simon Charette2015-12-171-32/+37
| | | | Thanks to Trac alias benzid-wael for the report.
* Fixed #25597 -- Fixed crash with SplitArrayField and IntegerField on invalid ↵Tim Graham2015-10-271-1/+1
| | | | value.
* Removed unnecessary arguments in .get method callsPiotr Jakimiak2015-05-131-1/+1
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-3/+5
|
* Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne2014-12-081-1/+1
| | | | comprehension
* Added array field support for PostgreSQL.Marc Tamlyn2014-05-221-0/+185
The first part of django.contrib.postgres, including model and two form fields for arrays of other data types. This commit is formed of the following work: Add shell of postgres app and test handling. First draft of array fields. Use recursive deconstruction. Stop creating classes at lookup time. Add validation and size parameter. Add contained_by lookup. Add SimpleArrayField for forms. Add SplitArrayField (mainly for admin). Fix prepare_value for SimpleArrayField. Stop using MultiValueField and MultiWidget. They don't play nice with flexible sizes. Add basics of admin integration. Missing: - Tests - Fully working js Add reference document for django.contrib.postgres.fields.ArrayField. Various performance and style tweaks. Fix internal docs link, formalise code snippets. Remove the admin code for now. It needs a better way of handing JS widgets in the admin as a whole before it is easy to write. In particular there are serious issues involving DateTimePicker when used in an array. Add a test for nested array fields with different delimiters. This will be a documented pattern so having a test for it is useful. Add docs for SimpleArrayField. Add docs for SplitArrayField. Remove admin related code for now. definition -> description Fix typo. Py3 errors. Avoid using regexes where they're not needed. Allow passing tuples by the programmer. Add some more tests for multidimensional arrays. Also fix slicing as much as it can be fixed. Simplify SplitArrayWidget's data loading. If we aren't including the variable size one, we don't need to search like this.