Josh Schneier
37c9b81ebc
Fixed #28104 -- Prevented condition decorator from setting ETag/Last-Modified headers for non-safe requests.
2017-06-06 15:37:14 -04:00
Claude Paroz
23142eea85
Fixed #18394 -- Added error for invalid JavaScriptCatalog packages
...
Thanks Tim Graham for the review.
2017-06-06 18:02:22 +02:00
Paulo
4ad2f86284
Fixed #28202 -- Fixed FieldListFilter.get_queryset() crash on invalid input.
2017-06-06 07:54:31 -04:00
Claude Paroz
d02fc8dfd3
Refs #21286 -- Enabled serializer tests with date/datetime pk model
2017-06-05 21:36:25 +02:00
partizan
ff099f9db8
Fixed #28271 -- Added charset to technical_500_response() AJAX response.
2017-06-05 14:43:40 -04:00
Claude Paroz
6352d06cd0
Fixed #26651 -- Kept original file suffix in TemporaryUploadedFile name
...
Thanks Tim Graham for the review.
2017-06-05 18:55:44 +02:00
Paulo
b7f99f84bc
Fixed #28262 -- Fixed incorrect DisallowedModelAdminLookup when a nested reverse relation is in list_filter.
2017-06-05 10:29:54 -04:00
Jon Dufresne
a0f8c52ae2
Fixed ResourceWarnings in tests/servers/tests.py.
...
e.g. ResourceWarning: unclosed <socket.socket [closed] fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
2017-06-05 09:56:51 -04:00
Adam Johnson
ed244199c7
Fixed #28269 -- Fixed Model.__init__() crash on models with a field that has an instance only descriptor.
...
Regression in d2a26c1a90
.
2017-06-05 08:40:43 -04:00
Adam Johnson
36f09c8a29
Added a test for Model._meta._property_names.
2017-06-05 08:28:33 -04:00
Jon Dufresne
0a66aa158a
Refs #27308 , #27753 -- Removed obsolete cookie test mixing bytes with str.
...
Python 3's SimpleCookie treats all values as strings. Passing a bytes
object coerces to the repr value.
2017-06-03 21:07:11 -04:00
Claude Paroz
43b574007e
Fixed #28192 -- Required passing optional form field args as keyword args.
2017-06-03 10:49:01 -04:00
Claude Paroz
54caca2d34
Refs #28192 -- Fixed documentation of ChoiceField choices requirement
...
Thanks Tim Graham for noticing the issue.
2017-06-03 16:17:03 +02:00
Anton Samarchyan
0c1355e9bb
Completed test coverage for RedirectFallbackMiddleware.
2017-06-02 20:10:27 -04:00
Anton Samarchyan
2b53c8377d
Improved test coverage of contrib/admin/checks.py.
2017-06-02 18:47:07 -04:00
Tim Graham
0841a31baf
Fixed admin_views IntegrityError test failure.
...
Regression in 38a5a23c32
.
2017-06-02 14:59:01 -04:00
Tim Graham
38a5a23c32
Fixed admin_views test when run in reverse.
...
Modifying self.s1 created in setUpTestData() leaked state.
Regression in 45585d3cbb
.
2017-06-02 13:35:03 -04:00
Tim Graham
45585d3cbb
Removed pk hardcoding in admin_views tests.
2017-06-02 10:01:41 -04:00
Jon Dufresne
29a518006f
Fixed #28265 -- Prevented renderer warning on Widget.render() with **kwargs.
2017-06-02 09:46:43 -04:00
Jon Dufresne
2c69824e5a
Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.
2017-06-01 19:08:59 -04:00
François Freitag
edee5a8de6
Fixed #27639 -- Added chunk_size parameter to QuerySet.iterator().
2017-06-01 17:50:41 -04:00
Mariusz Felisiak
924a89e135
Fixed #26682 -- Added support for Oracle identity columns.
...
Thanks Shai Berger and Tim Graham for reviews.
2017-06-01 19:33:48 +02:00
Tim Graham
cde31daf88
Sorted imports per isort 4.2.9.
2017-06-01 13:23:48 -04:00
Manatsawin Hanmongkolchai
a0c07d77fc
Fixed #28242 -- Moved ImageField file extension validation to the form field.
2017-06-01 10:13:23 -04:00
Ingo Klöcker
6bb3b2bff4
Refs #27777 -- Improved docs/added test for File context manager change.
2017-05-31 21:02:58 -04:00
Matthias Erll
eee34ef64c
Fixed #22550 -- Prohibited QuerySet.last()/reverse() after slicing.
2017-05-31 19:34:56 -04:00
Tim Graham
84fb50df67
Fixed a forms test after updated translations.
2017-05-31 19:29:34 -04:00
Derrick Jackson
789c290150
Fixed #28170 -- Fixed file_move_safe() crash when moving files to a CIFS mount.
2017-05-31 14:52:40 -04:00
Chris Lamb
2ec56bb782
Fixed #26755 -- Fixed test_middleware_classes_headers if Django source isn't writable.
2017-05-31 10:25:09 -04:00
Robert Rollins
b6d4b6e544
Fixed #28212 -- Allowed customizing the port that LiveServerTestCase uses.
...
Forwardport of 877d7b71ae
from stable/1.11.x
2017-05-30 18:49:10 -04:00
Tim Graham
4a251f8bce
Fixed AppRegistryNotReady error when running gis_tests in isolation on PostGIS.
...
Regression in 890537253c
.
2017-05-30 15:14:32 -04:00
Adit Biswas
c2eea61dff
Fixed #28209 -- Made date-based generic views return a 404 rather than crash when given an out of range date.
2017-05-30 13:20:35 -04:00
Adam Johnson
b3e55109bd
Improved test coverage for startapp/startproject management commands.
2017-05-30 09:40:32 -04:00
Adam Johnson
9509268cea
Refs #23804 -- Improved value validation in GDALRaster.geotransform setter.
2017-05-30 09:02:50 -04:00
Mariusz Felisiak
037d6540ec
Fixed gis_tests.geoapp test with incorrect geodetic coordinates.
...
The latitude coordinates exceed -90, 90 bounds and caused a test failure
on Oracle 12.2.
Thanks Michał Wierzbowski for help preparing the patch.
2017-05-30 08:22:40 -04:00
Tim Graham
f04495521a
Fixed #28199 -- Fixed Subquery generating unnecessary/invalid CAST.
...
Thanks Simon Charette for the fix.
2017-05-30 06:40:41 -04:00
Linus Lewandowski
eedc88bd4a
Fixed #26823 -- Prevented update_last_login signal receiver from crashing if User model doesn't have last_login field.
2017-05-29 17:31:18 -04:00
Nick Zaccardi
95993a89ce
Fixed #28248 -- Fixed password reset tokens being valid for 1 day longer than PASSWORD_RESET_TIMEOUT_DAYS.
2017-05-29 09:22:22 -04:00
Jon Dufresne
21046e7773
Fixed #28249 -- Removed unnecessary dict.keys() calls.
...
iter(dict) is equivalent to iter(dict.keys()).
2017-05-27 19:08:46 -04:00
Jon Dufresne
2a5708a304
Fixed a test's dict_keys/list comparison that always evaluated as False.
2017-05-27 18:37:16 -04:00
Tom
7afb476469
Fixed #28226 -- Replaced use of str.join() with concatenation.
2017-05-27 13:59:05 -04:00
Alex
37ab3c3f9d
Fixed #28222 -- Allowed settable properties in QuerySet.update_or_create()/get_or_create() defaults.
2017-05-27 12:41:38 -04:00
Tim Heap
5b6181f4d5
Fixed #27922 -- Added ErrorDict.get_json_data().
2017-05-27 09:19:42 -04:00
Chris Lamb
2f09a28558
Fixed #27881 -- Added diffsettings --output option.
...
Thanks Haris Ibrahim K. V. for writng docs.
2017-05-27 09:00:06 -04:00
Pavel Kulikov
af1fa5e7da
Fixed #27978 -- Allowed loaddata to read data from stdin.
...
Thanks Squareweave for the django-loaddata-stdin project from which this
is adapted.
2017-05-26 19:54:21 -04:00
jannh
c930c241f8
Fixed #28017 -- Allowed customizing PasswordResetTokenGenerator's secret.
2017-05-26 07:37:36 -04:00
Claude Paroz
2cbb095bec
Fixed #28221 -- Fixed plural fallback translations in JavaScriptCatalog view
...
Thanks Waldemar Kornewald for the report and initial patch.
2017-05-25 22:47:21 +02:00
Tom
bb0b6e5263
Fixed #28211 -- Prevented ORing an empty Q() from reducing query join efficiency.
2017-05-25 09:06:25 -04:00
Tim Graham
1c3a6cec2a
Refs #28211 -- Added a test for ANDing empty Q()'s.
...
This test passes to due some logic in Node.add().
2017-05-25 09:02:13 -04:00
Rajesh Veeranki
67e1afb4a8
Fixed #28224 -- Tested for SuspiciousOperation subclasses in Django's tests.
2017-05-25 08:19:01 -04:00
Mariusz Felisiak
663d1c3160
Simplified schema.tests with assertForeignKeyExists()/assertForeignKeyNotExists().
...
Thanks Tim Graham for the review.
2017-05-24 16:43:56 +02:00
Bruno Alla
6092ea8fa6
Refs #27804 -- Used subTest() in several tests.
2017-05-24 08:36:34 -04:00
Mariusz Felisiak
91b2bc3e70
Fixed #27860 -- Dropped varchar_pattern_ops/text_pattern_ops index before altering char/text field in PostgreSQL.
...
Thanks Tim Graham for the review.
2017-05-24 07:25:59 +02:00
Mariusz Felisiak
538bf43458
Fixed #27859 -- Ignored db_index for TextField/BinaryField on Oracle and MySQL.
...
Thanks Zubair Alam for the initial patch and Tim Graham for the review.
2017-05-23 17:02:40 +02:00
Mariusz Felisiak
b3eb6eaf1a
Refs #27859 -- Added DatabaseWrapper.display_name.
...
Thanks Tim Graham for the review.
2017-05-23 09:09:35 -04:00
R3turnz
502f03d897
Fixed #28112 -- Added 'time_zone' in GeoIP2.city() dict.
2017-05-22 21:07:14 -04:00
Daniel Hahler
a3ba2662cd
Refs #28207 -- Fixed contrib.auth.authenticate() if 'backend' is in the credentials.
...
Regression in 3008f30f19
.
2017-05-22 12:24:38 -04:00
Ling-Xiao Yang
04ab96ec4f
Fixed #28015 -- Added makemessages --add-location option.
...
Thanks François Freitag for review.
2017-05-22 09:03:53 -04:00
Claude Paroz
43c65e0eb0
Fixed #28180 -- Numbered queries in assertNumQueries failure output
...
Thanks Tim Graham for the test part.
2017-05-20 15:11:09 +02:00
Tim Graham
59ab1b2683
Fixed #28210 -- Fixed Model._state.adding on MTI parent model after saving child model.
...
Regression in 38575b007a
.
2017-05-19 13:22:17 -04:00
Mariusz Felisiak
99df304c85
Fixed #28206 -- Fixed RawQuerySet crash on a model with a mixed case db_column pk on Oracle.
...
Thanks Tim Graham for the review.
2017-05-18 19:11:23 +02:00
François Freitag
98b3b14a64
Fixed #28203 -- Ignored connection configuration queries in assertNumQueries().
2017-05-18 11:48:03 -04:00
Jon Dufresne
f599747fc8
Fixed #28152 -- Made migrations serialize sets as set literals rather than set().
2017-05-18 09:33:40 -04:00
Claude Paroz
912ef7f49d
Fixed validity of test django_js.po files
2017-05-18 14:33:18 +02:00
Tim Graham
650bf6714d
Refs #27996 -- Skipped RandomUUID test on PostgreSQL 9.3.
2017-05-15 09:26:38 -04:00
Tim Schneider
3a5299c19c
Fixed #28197 -- Fixed introspection of index field ordering on PostgreSQL.
2017-05-15 08:33:31 -04:00
Tamas Szabo
3008f30f19
Fixed #28207 -- Fixed contrib.auth.authenticate() if multiple auth backends don't accept a request.
2017-05-15 07:48:15 -04:00
Danilo Bargen
a7975260b5
Fixed #28195 -- Added OSMWidget.default_zoom attribute.
2017-05-14 14:31:17 -04:00
Tim Graham
d3209bf09c
Simplified test for OSMWidget.default_lon/lat.
2017-05-14 13:02:09 -04:00
Sławek Ehlert
faaf62f616
Improved test coverage for createsuperuser command.
2017-05-12 10:29:56 -04:00
Simon Charette
4acae21846
Fixed #24254 -- Fixed queries using the __in lookup with querysets using distinct() and order_by().
...
Thanks Tim for the review.
2017-05-11 21:50:07 -04:00
Tim Graham
a9874d48b1
Fixed #28188 -- Fixed crash when pickling model fields.
...
Regression in d2a26c1a90
.
Thanks Adam Alton for the report and test, and Adam Johnson for
suggesting the fix.
2017-05-11 21:04:52 -04:00
Simon Charette
daf2bd3efe
Fixed #28107 -- Disabled grouping of selected primary keys for unmanaged models.
...
The grouping caused an issue with database views as PostgreSQL's query planer
isn't smart enough to introspect primary keys through views. Django doesn't
support database views but documents that unmanaged models should be used to
query them.
Thanks powderflask for the detailed report and investigation.
2017-05-11 20:00:57 -04:00
Alexander Allakhverdiyev
a7c6c705e8
Fixed #28129 -- Allowed custom template tags to use keyword-only arguments.
2017-05-11 10:09:44 -04:00
Claude Paroz
d1e5516c06
Complemented message storage test with explicit None extra_tags value
2017-05-10 22:38:46 +02:00
Florian Apolloner
d611a89238
Decreased max_length for char fields unless absolutely needed. ( #8485 )
2017-05-10 17:33:46 +02:00
Florian Apolloner
60f5129076
Fixed db backend discovery in admin_scripts tests.
...
Not all backends have dots in them.
2017-05-10 09:47:20 -04:00
UmanShahzad
856072dd4a
Fixed #28142 -- Fixed is_safe_url() crash on invalid IPv6 URLs.
2017-05-10 09:02:20 -04:00
Markus Holtermann
8e352876c3
Refs #22397 -- Removed model in test cleanup
...
The test was failing when using --keepdb due to a pre-existing
PonyStables model.
Thanks Florian Apolloner for the report
2017-05-09 11:15:41 +02:00
Claude Paroz
a87189fc5e
Fixed #28164 -- Improved float conversions in DecimalField.to_python
...
Thanks Tim Graham and Adam Johnson for the reviews.
2017-05-09 08:40:08 +02:00
Claude Paroz
d842ada305
Refs #27795 -- Stopped converting integer format settings to str in JS/JSON i18n views
...
Thanks Tim Graham for the review.
2017-05-08 19:32:03 +02:00
Claude Paroz
e3a88c7797
Renamed django.views.i18n test cases
2017-05-08 19:29:27 +02:00
Josh Schneier
5df0ff4155
Fixed #28089 -- Removed requirement to implement get_short_name() and get_full_name() in AbstractBaseUser subclasses.
2017-05-06 17:05:42 -04:00
François Freitag
88336fdbb5
Fixed #28062 -- Added a setting to disable server-side cursors on PostgreSQL.
...
When a connection pooler is set up in transaction pooling mode, queries
relying on server-side cursors fail. The DISABLE_SERVER_SIDE_CURSORS
setting in DATABASES disables server-side cursors for this use case.
2017-05-06 06:59:04 -04:00
Raphael Michel
504e7782fe
Refs #22654 -- Added additional tests and amended release note.
2017-05-05 18:45:07 -04:00
Tim Graham
d66378a8b2
Fixed #28175 -- Fixed __in lookups on a foreign key when using the foreign key's parent model as the lookup value.
...
Thanks Simon Charette for review.
2017-05-05 18:35:08 -04:00
Tim Graham
b014de011b
Removed obsolete HAS_GEOS variable for test skipping.
2017-05-04 20:45:18 -04:00
Tim Graham
2dc3280254
Fixed #28160 -- Prevented hiding GDAL exceptions when it's not installed.
2017-05-04 20:45:18 -04:00
Tim Graham
890537253c
Made runtests.py run gis_tests only when using a GIS database backend.
...
This facilitates other changes like refs #28160 .
2017-05-04 20:29:19 -04:00
François Freitag
ec05ff086c
Refs #25546 -- Added detailed comments for prefetch_related test.
2017-05-04 09:19:54 -04:00
François Freitag
c0a2b9508a
Fixed #27554 -- Fixed prefetch_related() crash when fetching relations in nested Prefetches.
2017-05-04 09:17:29 -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
67702f3505
Converted sessions_tests to use assertIs() rather than assertTrue/False().
2017-05-03 20:21:39 -04:00
Tim Graham
578e576c31
Fixed #28167 -- Fixed cache backend's SessionStore.exists() if session_key is None.
2017-05-03 12:39:07 -04:00
Tim Graham
584e10c76e
Fixed #28166 -- Fixed Model._state.db on MTI parent model after saving child model.
...
Regression in 38575b007a
.
2017-05-03 12:14:15 -04:00
Alexander Kavanaugh
362fba87c9
Fixed #28159 -- Fixed BaseInlineFormSet._construct_form() crash when using save_as_new.
...
Regression in 4a246a02bd
.
2017-05-03 07:45:51 -04:00
Tim Graham
d302e2c09c
Fixed #28157 -- Fixed choice ordering in form fields with grouped and non-grouped options.
...
Regression in b52c73008a
.
2017-05-03 07:21:44 -04:00
Tim Graham
d0e43f225f
Refs #28052 -- Cleaned up some indexes in schema tests.
2017-05-01 22:19:05 -04:00
Markus Holtermann
663e48947f
Fixed #28052 -- Prevented dropping Meta.indexes when changing db_index to False.
...
Thanks Marc Tamlyn for the report and Ian Foote/Tim Graham for review.
2017-05-01 11:31:48 -04:00