Jon Dufresne
ff05de760c
Fixed #29038 -- Removed closing slash from HTML void tags.
2018-01-21 02:09:10 -05:00
Jon Dufresne
3c34452ab5
Refs #23668 -- Removed passing default argument of current TZ to make_aware()/naive.
2018-01-18 11:21:12 -05:00
Sergey Fedoseev
1490611038
Fixed #28908 -- Allowed ArrayField lookups on ArrayAgg annotations.
2017-12-30 14:46:52 -05:00
Mads Jensen
f0a68c2511
Fixed #28702 -- Made query lookups for CIText fields use citext.
2017-11-29 10:35:37 -05:00
Tim Graham
9bea555d06
Fixed test failures due to ordering differences on PostgreSQL 10.
2017-11-15 09:37:18 -05:00
shanghui
1907fc9b12
Fixed #28534 -- Made JSONField.has_changed() ignore key order and consider True/1 values as different.
2017-11-11 19:45:23 -05:00
Imran Iqbal
3e7497a05e
Fixed #28758 -- Fixed RangeMax/MinValueValidators crash with unbound ranges.
2017-11-07 15:07:03 -05:00
Michał Pasternak
e554b72a2a
Fixed #28749 -- Added subquery support for ArrayField's __in lookup.
2017-11-01 15:12:18 -04:00
Flávio Juvenal
f6e1789654
Fixed #28577 -- Added checks for ArrayField and JSONField to prevent mutable defaults.
2017-10-20 13:17:22 -04:00
Tim Graham
1d8cfa3608
Fixed #28626 -- Dropped support for PostgreSQL 9.3.
...
Thanks Simon Charette for the introspection changes.
2017-09-27 11:00:04 -04:00
Tim Graham
f7b0532ec0
Refs #28334 -- Fixed crash in hstore/citext oid caching during test db creation.
2017-09-19 07:04:31 -04:00
Tim Graham
da1ba03f1d
Added test skipping for a PostgreSQL JSONField test.
2017-09-18 09:19:26 -04:00
Igor Gumenyuk
86a18dc46a
Fixed #28334 -- Added caching for hstore/citext OIDs.
2017-09-15 10:00:12 -04:00
Claude Paroz
a599ae6018
Refs #24928 -- Added introspection support for PostgreSQL RangeField
2017-09-09 20:22:47 +02:00
Claude Paroz
0cbb6ac007
Refs #24928 -- Added introspection support for PostgreSQL JSONField
...
Thanks Adam Johnson and Tim Graham for the reviews.
2017-09-09 18:26:29 +02:00
Tim Graham
6e4c6281db
Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."
...
This reverts commit 550cb3a365
because try/except performs better.
2017-09-07 08:16:21 -04:00
Mads Jensen
f4135783ad
Fixed #28126 -- Added GistIndex to contrib.postgres.
...
Thanks to Marc Tamlyn for the initial patch.
2017-09-04 21:08:02 -04:00
Mads Jensen
e016c4c65b
Refs #27869 -- Omitted field kwargs from GinIndex.deconstruct() if they're None.
2017-08-26 10:32:03 -04:00
Mads Jensen
fb42d02471
Refs #25809 -- Omitted pages_per_range from BrinIndex.deconstruct() if it's None.
2017-08-26 09:45:45 -04:00
Tim Graham
487362fa8f
Fixed #28370 -- Deprecated the context arg of Field.from_db_value() and Expression.convert_value().
...
Unused since a0d166306f
.
2017-07-20 16:30:08 -04:00
Mads Jensen
550cb3a365
Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().
2017-06-28 14:07:55 -04:00
Mads Jensen
de42adf4ff
Fixed #27869 -- Added fastupdate and gin_pending_list_limit params to GinIndex.
...
Thanks Tim Graham and Markus Holtermann for review.
2017-06-20 10:54:39 -04:00
Tim Graham
d1d7348001
Refs #25809 -- Removed BrinIndex.__repr__().
...
In retrospect, implementing a __repr__() for index subclasses doesn't
seem worthwhile.
2017-06-17 18:41:53 -04:00
Romulo Furtado
9dd2443942
Fixed #27161 -- Fixed form validation when an ArrayField's base_field has choices.
2017-06-13 19:44:24 -04:00
Tim Graham
650bf6714d
Refs #27996 -- Skipped RandomUUID test on PostgreSQL 9.3.
2017-05-15 09:26:38 -04:00
Simon Charette
b91868507a
Fixed #28161 -- Fixed return type of ArrayField(CITextField()).
...
Thanks Tim for the review.
2017-05-04 00:02:14 -04:00
Simon Charette
f37467ec7a
Added a test for ArrayField(HStoreField()).
2017-05-03 23:53:08 -04:00
Tim Graham
1ebd295082
Fixed #28040 -- Updated SplitArrayWidget to use template-based widget rendering.
...
Thanks Preston Timmons for review.
2017-04-29 19:00:21 -04:00
Paolo Melchiorre
fcb5dbfec0
Fixed #27996 -- Added RandomUUID function and CryptoExtension to contrib.postgres.
2017-04-25 20:21:36 -04:00
Paolo Melchiorre
a78fd2abd4
Alphabetized CITextExtension in test migration.
2017-04-25 19:32:39 -04:00
Simon Charette
a354c69055
Fixed #28038 -- Restored casting to text of builtin lookups on PostgreSQL.
...
Reverted 658f1e8
which broke code using __icontains's implicit cast to ::text
on ArrayField.
Thanks Peter J. Farrell for the report.
2017-04-07 16:47:52 -04:00
Mads Jensen
82bb4e684f
Fixed #27935 -- Fixed crash with BrinIndex name > 30 characters.
2017-03-18 08:12:10 -04:00
Tim Graham
6b4f018b2b
Replaced type-specific assertions with assertEqual().
...
Python docs say, "it's usually not necessary to invoke these methods directly."
2017-03-17 07:51:48 -04:00
Claude Paroz
8346680e1c
Refs #27795 -- Removed unneeded force_text calls
...
Thanks Tim Graham for the review.
2017-03-04 18:18:21 +01:00
Tim Graham
b008f7cc56
Fixed #27135 -- Made index introspection return Index.suffix.
2017-02-15 20:15:02 -05:00
Mads Jensen
fb5bd38e3b
Refs #26610 -- Added CIText mixin and CIChar/Email/TextField.
2017-02-11 07:16:35 -05:00
Mariusz Felisiak
6b048b364c
Fixed #26903 -- Fixed __contains lookup for Date/DateTimeRangeField.
...
Thanks Mariusz Felisiak and Tim Graham for polishing the patch.
2017-02-07 12:46:18 -05:00
orf
b5393028bf
Fixed #27767 -- Added distinct argument to ArrayAgg.
2017-02-04 13:57:39 -05:00
chillaranand
d6eaf7c018
Refs #23919 -- Replaced super(ClassName, self) with super().
2017-01-25 12:23:46 -05:00
Tim Graham
7aba69145d
Refs #23919 -- Removed django.test.mock Python 2 compatibility shim.
2017-01-20 08:17:20 -05:00
Simon Charette
cecc079168
Refs #23919 -- Stopped inheriting from object to define new style classes.
2017-01-19 08:39:46 +01:00
Claude Paroz
d7b9aaa366
Refs #23919 -- Removed encoding preambles and future imports
2017-01-18 09:55:19 +01:00
Mads Jensen
65e321b781
Refs #25809 -- Made a few late review comments for BrinIndex.
2017-01-16 13:23:20 -05:00
Mads Jensen
e585c43be9
Fixed #25809 -- Added BrinIndex support in django.contrib.postgres.
...
Thanks Tim Graham and Markus Holtermann for review.
2017-01-15 13:37:18 +01:00
Simon Charette
2e55790838
Refs #25226 -- Cloned ArrayField.base_field on deconstruction.
...
This prevents the base_field from sharing attributes with the one used
during migrations.
2017-01-14 06:31:34 -05:00
Simon Charette
d976760260
Fixed #27693 , Refs #27257 -- Fixed iexact lookup on JSONField keys.
...
Thanks Harris Lapiroff for the report.
2017-01-06 19:25:32 -05:00
David Hoffman
bf84d042e0
Fixed #27582 -- Allowed HStoreField to store null values.
2016-12-15 10:35:44 -05:00
Mads Jensen
aa2cb4c622
Refs #26327 -- Renamed JsonAgg to JSONBAgg.
...
Thanks to Christian von Roques for the report.
2016-11-28 06:57:01 -05:00
Brandon Chinn
eed6150009
Refs #27003 -- Fixed JSONField crash on converted values.
2016-11-15 18:43:55 -05:00
Brandon Chinn
6573274161
Refs #27003 -- Fixed SimpleArrayField crash on converted values.
2016-11-15 18:10:45 -05:00
za
321e94fa41
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
2016-11-10 21:30:21 -05:00
Mads Jensen
0a26f3c338
Fixed #26327 -- Added JsonAgg to contrib.postgres.
...
Thanks Tim Graham for review.
2016-10-07 07:52:03 -04:00
Simon Charette
cecef94275
Fixed #27257 -- Fixed builtin text lookups on JSONField keys.
...
Thanks Nick Stefan for the report and Tim for the review.
2016-09-22 22:19:37 -04:00
Tim Graham
3507d4e773
Fixed #27186 -- Fixed model form default fallback for MultiWidget, FileInput, SplitDateTimeWidget, SelectDateWidget, and SplitArrayWidget.
...
Thanks Matt Westcott for the review.
2016-09-22 12:20:58 -04:00
Mads Jensen
094d630ae8
Fixed #26610 -- Added CITextField to contrib.postgres.
2016-09-21 12:11:37 -04:00
Tim Graham
3347dc6b4e
Added tests for ArrayField lookup errors.
2016-09-20 10:14:47 -04:00
Simon Charette
32c0d823e5
Used a database feature to prevent the jsonb test model from being migrated.
...
Thanks Tim for the review.
2016-09-12 20:07:35 -04:00
Claude Paroz
d389125606
Fixed #27098 -- Deprecated DatabaseIntrospection.get_indexes
...
Thanks Akshesh <aksheshdoshi@gmail.com> for help with the PostgreSQL query.
Thanks Tim Graham for the review.
2016-09-12 09:26:33 +02:00
Nicola Jordan
978a00e39f
Fixed #27143 -- Allowed combining SearchQuery with more than one & or | operators.
2016-09-07 15:26:52 -04:00
Tim Graham
2eb7d6e6d4
Fixed #26908 -- Fixed crash with jsonfield__key__isnull lookup.
2016-09-07 13:56:45 -04:00
Akshesh
dbccf163b6
Fixed #27097 -- Added index type introspection to built-in db backends.
2016-09-02 21:14:12 -04:00
Akshesh
4c7bf83cde
Refs #27097 , #27098 -- Moved PostgreSQL index type introspection to get_constraints().
2016-08-30 08:48:55 -04:00
Claude Paroz
13c3e5d5a0
Fixed #25995 -- Added an encoder option to JSONField
...
Thanks Berker Peksag and Tim Graham for the reviews.
2016-08-25 21:42:42 +02:00
Matthew Wilkes
4f138fe5a4
Fixed #22288 -- Fixed F() expressions with the __range lookup.
2016-08-19 13:40:56 -04:00
Akshesh
6e07ec3f65
Fixed #27030 -- Added contrib.postgres.indexes.GinIndex.
2016-08-12 18:37:03 -04:00
Akshesh
236baa0f0e
Refs #27030 -- Added BtreeGinExtension operation.
2016-08-12 18:37:00 -04:00
Akshesh
324c1b432a
Fixed #24442 -- Improved SchemaEditor's index name truncation.
2016-08-11 14:36:31 -04:00
Olexander Yermakov
68de48c963
Fixed #26949 -- Fixed crash of disabled forms.JSONField.
2016-07-27 08:14:14 -04:00
Tim Graham
a5f85d891b
Fixed #26917 -- Fixed crash in disabled ModelChoiceFields.
...
Partially reverted refs #25532 to fix a regression in Django 1.10.
This reintroduces a crash for disabled forms.JSONField (refs #26949 ),
however, that issue is also present on Django 1.9.
Thanks Ryan Schave for the test.
2016-07-27 08:14:14 -04:00
Claude Paroz
283b468462
Fixed #25454 -- Ensured register_hstore_handler is called for all connections
...
Thanks Simon Charette for help with the patch.
2016-07-21 17:54:54 +02:00
Jon Dufresne
4f336f6652
Fixed #26747 -- Used more specific assertions in the Django test suite.
2016-06-16 14:19:18 -04:00
Tim Graham
ea34426ae7
Fixed flake8 2.6 warnings.
2016-06-16 09:12:50 -04:00
Charlie Denton
f2c0eb19e9
Fixed #26748 -- Allowed overriding JSONField's widget with an attribute.
2016-06-13 08:09:54 -04:00
Brad Melin
f6517a5335
Fixed #26672 -- Fixed HStoreField to raise ValidationError instead of crashing on non-dict JSON input.
2016-06-02 16:28:01 -04:00
Rustam Kashapov
df8412d2e5
Fixed #26617 -- Added distinct argument to contrib.postgres's StringAgg.
2016-06-02 13:48:35 -04:00
Matthew Somerville
1962a96a30
Fixed #24938 -- Added PostgreSQL trigram support.
2016-05-13 12:38:21 -04:00
Conrad Kramer
c112198332
Fixed #26542 -- Fixed quoting in CreateExtension operation.
2016-04-27 09:30:55 -04:00
Tim Graham
57f76be35e
Removed a flaky contrib.postgres search test.
...
The test sometimes fails on CI and isn't worth debugging at this time.
2016-04-22 20:32:20 -04:00
Marc Tamlyn
2d877da855
Refs #3254 -- Added full text search to contrib.postgres.
...
Adds a reasonably feature complete implementation of full text search
using the built in PostgreSQL engine. It uses public APIs from
Expression and Lookup.
With thanks to Tim Graham, Simon Charettes, Josh Smeaton, Mikey Ariel
and many others for their advice and review. Particular thanks also go
to the supporters of the contrib.postgres kickstarter.
2016-04-22 10:44:37 +01:00
Jon Dufresne
ec6121693f
Fixed #22383 -- Added support for HTML5 required attribute on required form fields.
2016-04-21 19:16:38 -04:00
Tim Graham
92053acbb9
Fixed E128 flake8 warnings in tests/.
2016-04-08 10:12:33 -04:00
anna
b28c60529b
Fixed #26101 -- Allowed introspection of base_field.model in RangeField
...
Used the same test and fix as in #25867 .
This required initializing base_field in RangeField.__init__,
not when setting the attribute.
2016-04-03 16:32:30 +02:00
Claude Paroz
db19619545
Fixed #25532 -- Properly redisplayed JSONField form input values
...
Thanks David Szotten for the report and Tommy Beadle for code inspiration.
Thanks Tim Graham for the review.
2016-04-01 09:04:20 +02:00
Matt C
e7e5d9b338
Fixed #25579 -- Fixed ArrayField.get_db_prep_value() to allow complex types.
2016-03-15 11:23:38 -04:00
quaspas
91f87b8f91
Fixed #26283 -- Fixed removal of trailing nulls for SplitArrayField.
2016-03-12 17:22:25 -05:00
Fernando Miranda
2495023a4c
Fixed #25143 -- Added ArrayField.from_db_value().
...
Thanks Karan Lyons for contributing to the patch.
2016-03-12 09:14:35 -05:00
Claude Paroz
928c12eb1a
Fixed #26215 -- Fixed RangeField/ArrayField serialization with None values
...
Also added tests for HStoreField and JSONField.
Thanks Aleksey Bukin for the report and Tim Graham for the initial patch and
the review.
2016-02-16 21:07:05 +01:00
Tim Graham
36f1f5cfb0
Refs #25979 -- Dropped compatiblity for running tests on PostgreSQL < 9.2.
2016-02-12 09:59:13 -05:00
Greg Chapple
8dea9f089d
Fixed #26120 -- Made HStoreField cast keys and values to strings.
...
HStoreField now converts all keys and values to string before they're
saved to the database.
2016-01-29 09:51:23 -05:00
Simon Charette
a08fda2111
Fixed #25746 -- Isolated inlined test models registration.
...
Thanks to Tim for the review.
2016-01-06 20:00:07 -05:00
Simon Charette
3738e4ac46
Fixed #25841 -- Handled base array fields validation errors with params.
...
Thanks to Trac alias benzid-wael for the report.
2015-12-17 20:25:04 -05:00
Ian Foote
86eccdc8b6
Fixed #25544 -- Removed duplicate ids in prefetch_related() queries.
2015-12-17 19:08:30 -05:00
Simon Charette
59b57e672c
Fixed #25867 -- Fixed a system check crash with nested ArrayFields.
...
Thanks to Jean Gourds for the report, Tim and Claude for the review.
2015-12-07 14:45:22 -05:00
Josh Soref
93452a70e8
Fixed many spelling mistakes in code, comments, and docs.
2015-12-03 12:48:24 -05:00
Attila Tovt
88fc9e2826
Fixed #25772 -- Corrected __len lookup on ArrayField for empty arrays.
2015-11-25 16:53:05 -05:00
Simon Charette
d95b22bd56
Refs #25745 -- Isolated some postgres array field check tests.
2015-11-14 11:33:28 -05:00
Dmitry Dygalo
263b3d2ba1
Fixed #25666 -- Fixed the exact lookup of ArrayField.
2015-11-14 11:21:16 -05:00
Nicolas Delaby
2608799439
Checked DateTimeTZRange/DateRange conversion in postgres_tests.
2015-11-13 08:10:59 -05:00
Tim Graham
1f07da3e29
Fixed #25597 -- Fixed crash with SplitArrayField and IntegerField on invalid value.
2015-10-27 08:11:11 -04:00
Dražen Odobašić
b1e33ceced
Fixed #23395 -- Limited line lengths to 119 characters.
2015-09-12 11:40:50 -04:00