Adam Chainz
6ebf8f9057
Refs #27624 -- Made QuerySet._prefetch_related_lookups immutable.
2016-12-23 09:58:22 -05:00
Andrey Kuzminov
b8741c0058
Refs #18823 -- Corrected field name in an m2m manager error message.
2016-12-23 09:31:26 -05:00
Tim Graham
39a8843802
Used assertRaisesMessage() in m2m_through_regress tests.
...
The "needs to have a value for field" messages are incorrect and
reference nonexistent fields since the commit in which they were
introduced (refs #18823 ).
2016-12-23 09:31:26 -05:00
Tim Graham
bcae045de0
Refs #26487 -- Removed unneeded ehlo() calls in SMTP backend.
...
starttls(), login(), and other connection methods already call
the method as needed.
2016-12-23 09:22:23 -05:00
Adam Chainz
0a9bd266ff
Documented url()'s 'regex' parameter.
2016-12-22 19:16:26 -05:00
Adam Chainz
8fb82a315a
Used @override_settings for SECURE_PROXY_SSL_HEADER tests.
2016-12-22 18:52:50 -05:00
Anton Samarchyan
da79240050
Fixed #26632 -- Skipped admin.E111 list_display_links check if get_list_display() is overridden.
2016-12-22 09:32:11 -05:00
Phil Tysoe
bf4516a628
Added tests for django.utils.autoreload.
2016-12-22 09:01:28 -05:00
Tim Graham
61225ef721
Removed the importance of "core developers" in triaging tickets, etc.
2016-12-21 20:18:13 -05:00
Tim Graham
96271533d2
Moved modeladmin check tests to a separate file.
2016-12-21 17:23:57 -05:00
Tim Graham
a04e795667
Wrapped an import per isort.
2016-12-21 17:05:59 -05:00
jpic
bf6392bb75
Fixed #27600 -- Suppressed the REPL during shell's reading from stdin.
...
Thanks Adam Chainz for review and guidance.
2016-12-21 17:05:33 -05:00
Andrew Nester
24fa728a47
Fixed #27612 -- Added a check for duplicate URL instance namespaces.
2016-12-21 16:54:15 -05:00
Jaap Roes
3188b49ee2
Fixed #25753 -- Made get_format() cache the formats from Django settings
2016-12-21 17:40:08 +01:00
Claude Paroz
1206d7fa57
Refs #25753 -- Reset l10n cache when format settings change
...
Thanks Jaap Roes for the initial patch.
2016-12-21 17:40:08 +01:00
Alix Martineau
0a8c685447
Fixed #27439 -- Documented macOS locale configuration for Django tests.
2016-12-20 12:58:14 -05:00
Preston Timmons
0b4d517263
Fixed #27584 -- Fixed display of render time template errors.
2016-12-20 10:36:33 -05:00
Tim Graham
5e239ae907
Fixed #27616 -- Fixed incorrect vary_on_headers() example.
2016-12-20 08:30:18 -05:00
Tim Graham
e8d8fb3295
Added a test for NullBooleanField.formfield().
2016-12-20 07:57:25 -05:00
Tim Graham
09a7f121b5
Removed unneeded values in NullBooleanField.formfield().
...
These values are duplicated in the super().
2016-12-20 07:54:54 -05:00
Tim Graham
c27104a9c7
Fixed #27611 -- Doc'd that CSRF_COOKIE_HTTPONLY setting offers no security.
2016-12-19 17:56:58 -05:00
Tim Graham
1a04b1762b
Refs #25484 -- Made non-staticfiles {% static %} tag quote its output.
2016-12-19 16:18:06 -05:00
Tim Graham
e233f357bd
Refs #25484 -- Removed incorrect unquoting in {% static %}.
...
Regression in 374e6230ca
.
Thanks Florian Apolloner for the report and analysis.
2016-12-19 16:18:06 -05:00
Mariusz Felisiak
cc0bb07013
Refs #19884 -- Removed DatabaseFeatures.can_introspect_max_length.
...
Unused (always True) after 3e43d24ad3
.
2016-12-19 16:16:11 -05:00
Florian Apolloner
10278885fd
Fixed qunit tests (coverage still missing). ( #7716 )
2016-12-19 18:45:37 +01:00
Tim Graham
620dcdde6e
Updated to QUnit 2.0.1.
2016-12-19 12:43:47 -05:00
Tim Graham
a85e84212e
Refs #21221 -- Prevented {% static %} tests from using contrib.staticfiles.
2016-12-19 12:37:38 -05:00
Tim Graham
12c1d6fe8f
Refs #27377 -- Fixed reverse query name clash in test model.
2016-12-19 10:10:48 -05:00
Jerome Leclanche
a849ec1880
Fixed #27606 -- Fixed HttpResponseRedirect.__repr__() crash when DisallowedRedirect is raised.
2016-12-19 10:01:03 -05:00
Henry Dang
6af23a4521
Fixed #27377 -- Clarified that prepopulated_fields doesn't work with OneToOneField.
2016-12-19 08:33:46 -05:00
Mariusz Felisiak
3e43d24ad3
Refs #19884 -- Added CharField max_length introspection on Oracle.
2016-12-19 08:29:42 -05:00
Tim Graham
e2112a5e1a
Made cosmetic edits to the "What happens when you save?" docs.
2016-12-17 10:24:08 -05:00
alix-
374e6230ca
Fixed #25484 -- Made {% static %} render escaped URLs.
2016-12-17 10:03:44 -05:00
Raphael Michel
33e86b3488
Refs #16859 -- Disabled CSRF_COOKIE_* checks when using CSRF_USE_SESSIONS.
2016-12-17 09:59:48 -05:00
Tim Graham
2f44fa7f06
Documented how to copy a OneToOneField.
...
Thanks Anton Gilgur for the report and review.
2016-12-17 08:39:52 -05:00
Tim Graham
8dac9890a5
Refs #25550 -- Removed a deprecated reverse assignment example in docs.
2016-12-17 08:39:52 -05:00
Sergey Fedoseev
af5983e4f5
Removed unneeded SpatiaLite workarounds in GIS tests.
2016-12-17 08:31:17 -05:00
Sergey Fedoseev
17a9e0cd07
Used assertJSONEqual() in GISFunctionsTests.test_asgeojson().
2016-12-17 08:23:47 -05:00
Sergey Fedoseev
5d28fef8f9
Made NumPoints raise TypeError on MySQL when it's used on fields besides LineStringField.
2016-12-16 10:34:02 -05:00
Tim Graham
3215bc98fe
Refs #27576 -- Fixed running Django's tests if GDAL isn't installed.
2016-12-15 17:38:34 -05:00
Sergey Fedoseev
b01ceae843
Fixed #25938 -- Factored out CPointerBase base class for GEOSBase/GDALBase.
2016-12-15 16:59:08 -05:00
Sergey Fedoseev
4884472447
Fixed #27576 -- Made get_srid_info() fallback to GDAL if SpatialRefSys is unavailable.
2016-12-15 16:36:18 -05:00
Javier Rojas
8ab8a8910c
Doc'd how ModelAdmin.list_display uses short_description.
2016-12-15 15:57:04 -05:00
Sergey Fedoseev
986c7d522a
Fixed #27497 -- Improved support of geodetic coordinates on SpatiaLite.
...
Area function, Distance function, and distance lookups now work with
geodetic coordinates on SpatiaLite.
2016-12-15 15:31:07 -05:00
Sergey Fedoseev
38a6df555f
Fixed #27602 -- Added Oracle support for BoundingCircle GIS function.
2016-12-15 14:16:09 -05:00
Sergey Fedoseev
5a23cc00f5
Fixed #27607 -- Added Oracle support for AsGML GIS function.
2016-12-15 14:00:08 -05:00
Adam Chainz
d2a26c1a90
Optimized Model instantiation a bit.
...
* Avoid some unnecessary attribute lookups, e.g. access signals directly rather than from module
* Alias some repeat accesses inside the method to use the slightly faster local lookups
* Use tuple to iterate remaining kwargs as it's faster to construct
* Cache Field.get_default() to avoid running through all the logic on every call
* Use a cached list of the properties on the model class to avoid repeat isinstance() calls
2016-12-15 13:42:44 -05:00
Tim Graham
f94475e526
Refs #27558 -- Isolated indexes test on MySQL.
...
MySQL schema changes must be done in TransactionTestCase.
2016-12-15 13:31:08 -05:00
Tim Graham
ebb85d1e79
Corrected docs claiming AsGML is supported on Oracle.
2016-12-15 13:01:00 -05:00
Sergey Fedoseev
d013134ffb
Improved testing of num_seg kwarg of BoundingCircle GIS function.
2016-12-15 12:40:04 -05:00