Scott Pashley
7cc2efc2d6
Fixed #26035 -- Prevented user-tools from appearing on admin logout page.
2016-01-06 13:48:02 -05:00
Tim Graham
2765adc8dc
Skipped a dateformat test on Windows as needed.
...
Refs 1014ba026e
2016-01-05 12:46:45 -05:00
Denis Cornehl
186b6c61bf
Fixed #26024 -- Fixed regression in ConditionalGetMiddleware ETag support.
...
Thanks Denis Cornehl for help with the patch.
2016-01-05 09:37:11 -05:00
Andrew Kuchev
d5b90c8e12
Fixed #21549 -- Made loaddata's 'fixture not found' warning an exception.
...
Thanks to mpasternak for the report and Tim Graham for the review.
2016-01-04 19:39:35 -05:00
Tim Graham
2c6c873e3f
Fixed #26009 -- Fixed contenttypes_tests isolation.
2016-01-04 11:45:26 -05:00
Marten Kenbeek
b551eda9c5
Refs #26011 -- Fixed AttributeError in test_port_bind test.
2016-01-02 11:03:24 -05:00
varunnaganathan
3eba9638ee
Fixed #25316 -- Fixed a crash with order_by() and values() after annotate().
2016-01-02 07:06:54 -05:00
Attila Tovt
0db6367fe2
Fixed #26008 -- Added parallel argument to paired_tests and bisect_tests
2016-01-02 08:44:33 +02:00
Tim Graham
98839e9066
Removed British/Austrialian word: whilist.
2015-12-31 14:29:52 -05:00
Marten Kenbeek
16411b8400
Fixed #26013 -- Moved django.core.urlresolvers to django.urls.
...
Thanks to Tim Graham for the review.
2015-12-31 14:21:29 -05:00
Marten Kenbeek
c87540cee5
Fixed #26011 -- Prevented random LiveServerTestCase test failures on Windows.
...
Prevented LiveServerTestCase from stealing ports used by concurrent
processes on Windows.
2015-12-31 10:57:03 -05:00
Tim Graham
89616f0c79
Made cosmetic cleanups in middleware tests.
2015-12-31 10:29:39 -05:00
Anssi Kääriäinen
ee9f4686b1
Fixed #23372 -- Made loaddata faster if it doesn't find any fixtures.
...
Django's test suite often tries to load fixture files from apps that have
no fixtures at all. This creates a lot of unnecessary disabling and
enabling of constraints which can be expensive on some database.
To speed this up, loaddata now first checks if any fixture file matches.
If no fixture file is matched, then the command exits before disabling
and enabling of constraints is done.
The main benefit of this change is seen on MSSQL, where tests on
Django 1.8 run hours faster.
2015-12-31 09:00:44 -05:00
Claude Paroz
00cb9e13b4
Fixed #15165 -- Prevented wrong results with perimeter on geodetic fields.
2015-12-30 18:07:02 -05:00
Chris Cogdon
e429c5186c
Fixed #26018 -- Prevented unecessary get_form() call in FormMixin.get_context_data().
...
Changed "dict.setdefault" to "if x in dict" pattern so that get_form() would not
be called unnecessarily, specifically in the case where FormMixin.form_invalid()
calls get_context_data() with the current form.
2015-12-30 17:29:39 -05:00
Tim Graham
7bc94b58bf
Refs #13614 -- Added test for admin's many-to-many widget data loss bug.
...
It looks like browsers have fixed the reported issue.
2015-12-30 14:10:09 -05:00
Raphaël Hertzog
e0f370364a
Fixed #26017 -- Removed a dependency on the name of the top-level tests directory.
2015-12-30 12:50:21 -05:00
Chris Cogdon
4b2dcfe04f
Fixed #26006 -- Fixed incorrect object reference in SingleObjectMixin.get_context_object_name().
2015-12-30 09:56:45 -05:00
Alexander Gaevsky
69208a5a1c
Fixed #25465 -- Restored line breaks conversion in admin readonly fields.
2015-12-29 19:31:43 -05:00
Tim Graham
dbb0df2a0e
Fixed #25985 -- Updated signature of ModelAdmin.formfield_for_* to make request a positional argument.
2015-12-29 12:49:14 -05:00
knbk
300de968d6
Fixed typo in test name.
2015-12-29 18:37:47 +01:00
Nick Sandford
ff19df9c2d
Fixed #19536 -- Included object-tools when ModelAdmin.has_add_permission() is False.
2015-12-29 12:10:44 -05:00
Claude Paroz
35c41987ec
Moved LogEntry-related tests to their own test case
...
Thanks Tim Graham for reviewing and contributing to the patch.
Refs #21113 .
2015-12-28 20:29:08 +01:00
Tim Graham
24a190d53c
Fixed previous commit ( e3d782fe80
) on Python 3.
2015-12-28 12:26:39 -05:00
Tim Graham
e3d782fe80
Added the response to an admin_views test assertion to aid debugging.
2015-12-28 11:25:46 -05:00
Bryan Marty
62ca2dea04
Fixed #8065 -- Made id_list an optional argument for QuerySet.in_bulk().
2015-12-26 17:57:19 -05:00
Alexander Sosnovskiy
2a7ce34600
Fixed #14286 -- Added models.BigAutoField.
2015-12-25 20:01:31 -05:00
Varun Sharma
692d055890
Fixed #25984 -- Corrected RuntimeError message in ModelBase.__new__().
2015-12-24 16:44:58 -05:00
Luis San Pablo
a856555df2
Fixed #25981 -- Added need to update migrations to on_delete deprecation warning.
2015-12-24 08:08:22 -05:00
Tomo Otsuka
8b6974a685
Fixed #25972 -- Restored support for the isnull lookup with ForeignObject.
2015-12-24 07:33:55 -05:00
Tim Graham
5081adcb90
Fixed #25729 -- Fixed flaky admin_widgets selenium test: test_ForeignKey_using_to_field
2015-12-23 13:56:00 -05:00
Tim Graham
edf3b88f1a
Refs #25969 -- Replaced usage of render_to_response() with render() in tests.
2015-12-23 09:06:13 -05:00
Sergey Fedoseev
312fc1af7b
Fixed #25961 -- Removed handling of thread-non-safe GEOS functions.
2015-12-23 08:02:37 -05:00
Sergey Fedoseev
5d348bba31
Fixed #25950 -- Added support for GEOSisClosed.
2015-12-22 16:54:02 -05:00
Marten Kenbeek
64ba7d8252
Moved URLObject in tests to separate utils module.
2015-12-22 22:32:42 +01:00
Karen Tracey
5399ccc0f4
Fixed #494 -- Added ability to specify classes on admin inline fieldsets.
...
This includes the ability to collapse inlines by specifying a class named
'collapse'.
2015-12-21 13:50:06 -05:00
Emre Yilmaz
63a6a653d4
Fixed #25855 -- Enhanced the migration warning for runserver.
...
Added unapplied migration count and the list of unmigrated apps.
2015-12-21 12:54:29 -05:00
Tim Graham
f18b08748a
Fixed #25903 -- Fixed the admin's list_editable add/change buttons.
2015-12-21 09:29:57 -05:00
Tim Graham
fa9ce4e9a6
Fixed #25922 -- Fixed migrate --fake-initial detection of many-to-many tables.
2015-12-19 13:37:24 -05:00
Sergey Fedoseev
c984e2bc15
Fixed #25869 -- Added trim and precision properties to WKTWriter.
2015-12-18 19:44:43 +01:00
Claude Paroz
cd3c042b04
Fixed #25915 -- Allowed language not in Django's default LANGUAGES
...
This fixes a regression introduced by a5f6cbce07
.
Thanks Gavin Wahl for the report and Tim Graham for the review.
2015-12-18 17:50:16 +01:00
Niels Van Och
99a1265a39
Fixed #25063 -- Added path to makemigration's output of migration file.
2015-12-18 11:20:00 -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
Claude Paroz
d91cc25a2a
Fixed #25942 -- Fixed TypedChoiceField.has_changed with nullable field
...
This fixes a regression introduced by 871440361
.
2015-12-17 15:38:19 +01:00
Simon Charette
c4e372aaf4
Fixed #25852 -- Made sure AlterModelManager forces a reload of its model state.
...
Thanks to Geoffrey Sechter and the Django NYC group for the report and Markus
for the review.
2015-12-15 12:22:59 -05:00
Stewart Park
b7fdd60d85
Fixed #24675 -- Skipped SQL_AUTO_IS_NULL query on MySQL if not needed.
2015-12-15 10:30:57 -05:00
Sergey Fedoseev
69b69f6d60
Fixed #25894 -- Fixed evaluation of zero-length slices of QuerySet.values().
2015-12-15 07:29:35 -05:00
Sergey Fedoseev
5146e2cf98
Fixed #25662 -- Allowed creation of empty GEOS geometries.
2015-12-14 13:29:38 -05:00
Simon Charette
8035cee922
Fixed #25882 -- Prevented fast deletes matching no rows from crashing on MySQL.
...
Thanks to Trac aliases gerricom for the report, raphaelmerx for the
attempts to reproduce and Sergey Fedoseev and Tim for the review.
Refs #16891
2015-12-14 13:12:36 -05:00
Johannes Hoppe
5233b70070
Fixed #25725 -- Made HttpReponse immediately close objects.
2015-12-14 12:46:48 -05:00
Sergey Fedoseev
a6c803a2e3
Fixed #25932 -- Made predicates of OGRGeometry return bool instead of int.
2015-12-14 11:30:36 -05:00
Anssi Kääriäinen
cd0ba8053d
Fixed #12885 -- Fixed queries with GenericRelations to multi-table inheritance child models.
2015-12-14 10:48:01 -05:00
Sergey Fedoseev
5005b527cb
Fixed #25925 -- Forced LANG=C for test_msgfmt_error_including_non_ascii.
2015-12-13 16:33:31 +01:00
Claude Paroz
ed20dd2e85
Fixed #25875 -- Prevented UnicodeDecodeError for Q object repr
...
Thanks Ben Kraft for the report, and Simon Charette for the review.
2015-12-13 15:07:17 +01:00
Iacopo Spalletti
d693074d43
Fixed #20223 -- Added keep_lazy() as a replacement for allow_lazy().
...
Thanks to bmispelon and uruz for the initial patch.
2015-12-12 14:46:48 -05:00
Tim Graham
10427646b8
Fixed #25909 -- Added unicode_literals import to apps.py generated by startapp.
2015-12-12 09:34:01 -05:00
Sergey Fedoseev
8ab58b8052
Fixed #25883 -- Fixed admin deletion page summary counts for related objects.
2015-12-10 18:09:03 -05:00
Federico Frenguelli
3a36c80795
Fixed #25412 -- Fixed missing PostgreSQL index on Char/TextField when using AlterField.
...
Thanks to Emanuele Palazzetti for the help.
2015-12-10 16:12:51 -05:00
Johannes Hoppe
cf546e11ac
Fixed #21221 -- Made form Media and static template tag use staticfiles if installed.
2015-12-10 14:30:19 -05:00
Derek J. Curtis
6be9589eb3
Fixed #25900 -- Fixed regression in CommonMiddleware ETag support.
2015-12-10 13:51:07 -05:00
Tim Graham
5bc881541c
Moved a few CommonMiddleware tests to the correct test class.
2015-12-10 13:44:54 -05:00
Shai Berger
c8b3fbe21b
Refs #25896 -- Fixed migration test failure on Oracle
...
The test creates and deletes a model in the same migration, and the model
had an AutoField. On Oracle, AutoField's are set up using deferred SQL, which
in this case was trying to modify a table after it had dbeen removed.
2015-12-10 02:12:04 +02:00
Amos Onn
542b7f6c50
Fixed #25896 -- Fixed state bug in SeparateDatabaseAndState.database_backwards().
2015-12-09 11:06:57 -05:00
Raphael Michel
82976e5c3f
Fixed #25637 -- Added URLValidator hostname length validation.
...
URLValidator now validates the maximum length of a hostname and the
maximum length of all labels inside the hostname.
2015-12-08 15:46:45 -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
Attila Tovt
6f229048dd
Fixed #25547 -- Made Model.refresh_from_db() update FileField's instance.
2015-12-05 17:23:13 -05:00
Thomas Grainger
d638cdc42a
Fixed #25165 -- Removed inline JavaScript from the admin.
...
This allows setting a Content-Security-Policy HTTP header
(refs #15727 ).
Special thanks to blighj, the original author of this patch.
2015-12-05 15:51:57 -05:00
Tim Graham
93be2f7dea
Refs #25677 -- Skipped an i18n test on older gettext versions.
2015-12-04 17:53:15 -05:00
Emre Yilmaz
8e838d9c86
Fixed #25840 -- Fixed BaseCache.get_or_set() on the DummyCache backend.
...
This also fixes a possible data eviction race condition between
setting and getting a key. Another thread could remove the key
before get_and_set() accesses it again. In this case, now the
default value will be returned instead of None.
2015-12-04 12:22:17 -05:00
Daniel Wiesmann
0e7d59df3e
Refs #25734 -- Relaxed GDALRaster statistics test to use assertAlmostEqual.
...
Some versions of GDAL give slightly different results.
2015-12-04 07:35:50 -05:00
bphillips
7f663aeccf
Fixed #25820 -- Allowed whitespace in admin's calendar.js month/weekday names.
...
This is useful for certain language translations.
2015-12-03 19:44:15 -05:00
Sergey Fedoseev
717a54c883
Fixed #25797 -- Fixed regex for getting units from SRS WKT.
2015-12-03 19:03:28 -05:00
Jaap Roes
c6ea4ed5d2
Fixed #25825 -- Implemented __ne__() for template Origin
2015-12-03 15:59:34 -05:00
Josh Soref
93452a70e8
Fixed many spelling mistakes in code, comments, and docs.
2015-12-03 12:48:24 -05:00
Ville Skyttä
4d0f8831a7
Fixed #25667 -- Fixed admindocs initial_header_level.
2015-12-02 17:56:38 -05:00
Sergey Fedoseev
0825f77f76
Fixed #25836 -- Added support for MakeLine aggregate on SpatiaLite.
2015-12-02 17:25:33 -05:00
Gagaro
34d88944f4
Fixed #25812 -- Restored the ability to use custom formats with the date template filter.
2015-11-28 08:38:45 -05:00
Baptiste Mispelon
81f5d63218
Improved help text for runtests's --parallel option
2015-11-27 21:43:02 +01:00
Aymeric Augustin
11f10b70f3
Fixed #25302 (again) -- Ignored scheme when checking for bad referers.
...
The check introduced in 4ce433e
was too strict in real life. The poorly
implemented bots this patch attempted to ignore are sloppy when it comes
to http vs. https.
2015-11-26 21:27:12 +01:00
Simon Charette
cc2ca9c550
Fixed #25807 -- Instructed the migration writer about lazy objects.
...
Thanks to Trac alias mrgaolei for the report, Baptiste for the confirmation
and Tim for the review.
2015-11-26 11:14:47 -05:00
Sergey Fedoseev
f920be7c32
Fixed #25773 -- Deprecated the geos.MultiPolygon.cascaded_union property.
2015-11-25 17:31:24 -05:00
Attila Tovt
88fc9e2826
Fixed #25772 -- Corrected __len lookup on ArrayField for empty arrays.
2015-11-25 16:53:05 -05:00
Daniel Wiesmann
8f5904560a
Fixed #25734 -- Made GDALBand min and max properties use GDALComputeRasterStatistics.
...
Thanks Sergey Fedoseev and Tim Graham for the review.
2015-11-25 13:40:39 -05:00
Jacek Bzdak
2cb50f935a
Fixed #25274 --- Made inspectdb handle renamed fields in unique_together.
2015-11-25 13:07:00 -05:00
Florian Apolloner
316bc3fc94
Fixed a settings leak possibility in the date template filter.
...
This is a security fix.
2015-11-24 11:20:29 -05:00
George Marshall
710e11d076
Fixed #25767 -- Fixed data truncation possibility with Positive(Small)IntegerField on MySQL.
2015-11-24 11:09:15 -05:00
Tim Graham
9350616211
Removed explicit User ids in tests.
2015-11-24 09:59:20 -05:00
Sergey Fedoseev
229fc793a0
Refs #25663 -- Fixed checking of the number of points for LineString if initialized from numpy.array.
2015-11-23 17:36:06 -05:00
Tim Graham
e07def14b8
Refs #25786 -- Added tests/release notes for set_FOO_order() crash with order_with_respect_to referencing OneToOneField pk.
...
Forwardport of 6d9f061b07
from stable/1.8.x
The issue was fixed by 7bec480fe2
.
2015-11-23 11:33:13 -05:00
Simon Charette
6d03bc14e7
Fixed #25685 -- Fixed a duplicate query regression on deletion of proxied models.
...
Thanks to Trac alias ppetrid for the report and Tim for the review.
Conflicts:
django/db/models/deletion.py
tests/delete/tests.py
Forward port of 7c3ef19978
from stable/1.8.x
2015-11-22 23:20:33 -05:00
Alex Morozov
6ca163d7cc
Fixed #25784 -- Prevented an exception on collectstatic help
...
Made the `manage.py help collectstatic` don't fail if the `STATIC_ROOT`
setting is empty.
2015-11-22 20:32:14 +01:00
Adam Wester
550107ff75
Fixed #25781 -- Simplified admin_views tests with client.force_login()
2015-11-21 17:21:32 -05:00
Alex Morozov
13dba4dba3
Fixed #25780 -- Removed redundant status code assertions from tests
2015-11-21 18:12:33 +01:00
Tim Graham
54e2e688e1
Fixed #25715 -- Fixed Model.refresh_from_db() with ForeignKey w/on_delete=SET_NULL.
2015-11-21 10:34:01 -05:00
Sergey Fedoseev
ccc8f67b77
Fixed #25722 -- Added the GEOSGeometry.covers() method.
2015-11-20 12:36:03 -05:00
Ana Vojnovic
73a6ab6382
Fixed #25551 -- Fixed migration operations ordering when adding fields and a unique_together constraint.
2015-11-20 12:20:41 -05:00
Sergey Fedoseev
b54de853e0
Removed skipIf for GEOSTest.test_linearref which already exists at class level.
2015-11-20 07:33:39 -05:00
Andrei Fokau
998894e1b9
Fixed #25764 -- Added support for serialization of enum.Enum in migrations.
...
Thanks Tim Graham for the review.
2015-11-19 17:21:12 -05:00
Tim Graham
65764a9316
Renamed __unicode__() to __str__() in some test comments.
2015-11-19 16:44:16 -05:00