1
0
mirror of https://github.com/django/django.git synced 2024-11-20 00:14:08 +00:00
Commit Graph

7392 Commits

Author SHA1 Message Date
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
Tim Graham
db8763fb23 Refs #25677 -- Fixed Python 2 i18n test failure on non-ASCII path. 2015-11-19 15:55:00 -05:00
Anton Baklanov
80bcbecd4a Fixed #19361 -- Added link to object's change form in admin's post-save message.
Thanks Roel Kramer for tests.
2015-11-19 15:04:32 -05:00
Tim Graham
4921d4e59f Fixed #25769 -- Updated get_version() release candidate naming for PEP 0440. 2015-11-19 10:00:09 -05:00
Claude Paroz
fa08d27fb7 Fixed #25677 -- Prevented decoding errors in/after Popen calls
Thanks Gavin Wahl for the report and Tim Graham for the review.
2015-11-19 15:17:47 +01:00
Jani Tiainen
58379d7e95 Fixed #25438 -- Fixed assorted Oracle GIS test failures. 2015-11-19 09:07:35 -05:00
Sergey Fedoseev
3eaf37af3c Allowed RasterFieldWithoutGDALTest to run even if GDAL is installed. 2015-11-19 08:53:21 -05:00
Nick Sandford
5fa7b592b3 Fixed #22810 -- Corrected admin changelist count for list filters that filter by default. 2015-11-18 19:54:27 -05:00
Sergey Fedoseev
034dfbfc05 Fixed #25654 -- Added the GEOSGeometry.unary_union property. 2015-11-18 19:17:16 -05:00
Sergey Fedoseev
1e35dd1a05 Fixed #25663 -- Added checking of the number of points for LinearRing and LineString. 2015-11-18 18:36:10 -05:00
Sergey Fedoseev
7a452c5ce2 Fixed #25665 -- Deprecated getter/setter of Point.tuple. 2015-11-18 12:06:03 -05:00
Sergey Fedoseev
7803f429a4 Refs #25665 -- Deprecated getters/setters of Point coordinate properties. 2015-11-18 11:57:26 -05:00
Sergey Fedoseev
b7177cc2a4 Refs #25665 -- Deprecated getter/setter of GEOSGeometry.srid. 2015-11-18 11:49:48 -05:00
Raphael Merx
0a19f8d4fc Fixed #25644 -- Fixed reset cookie expiry date bug.
Setting a cookie with the same name as a previously deleted cookie
would set its expiry date to 'Thu, 01-Jan-1970 00:00:00 GMT'.
2015-11-18 07:47:40 -05:00
Attila Tovt
0a2d3b7387 Fixed #25682 -- Removed bare except clauses. 2015-11-17 14:39:15 -05:00
Raphael Michel
16945f0e9c Fixed #25695 -- Added template_name parameter to csrf_failure() view. 2015-11-17 14:28:18 -05:00
Tim Graham
20d2778597 Removed obsolete comments about Django 1.10 in two test files. 2015-11-17 10:42:22 -05:00
Simon Charette
1c5f4e86bc Fixed #25745 -- Promoted RuntimeWarnings to errors in the test suite. 2015-11-14 11:33:28 -05:00
Simon Charette
d95b22bd56 Refs #25745 -- Isolated some postgres array field check tests. 2015-11-14 11:33:28 -05:00
Simon Charette
64240263f2 Refs #25745 -- Avoided multiple registration of the same model in schema tests. 2015-11-14 11:33:28 -05:00
Simon Charette
2eefbca1a4 Refs #25745 -- Isolated a foreign_object test. 2015-11-14 11:33:28 -05:00
Simon Charette
406de4c243 Refs #25745 -- Isolated an order_with_respect_to test. 2015-11-14 11:33:28 -05:00
Tim Graham
e9673c657a Cleaned up admin_filters' docstrings. 2015-11-14 11:30:24 -05:00
Tim Graham
b1b14587ae Fixed admin_filters test failures when run in reverse. 2015-11-14 11:30:24 -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
2514e044a7 Bumped mysqlclient test requirement to >= 1.3.7.
mysqlclient 1.3.7 fixes the test failures caused by 1.3.6.
2015-11-12 21:34:00 -05:00
Andrey Kuzmin
815f4d206d Fixed #25606 -- Added support for "__" lookup in RelatedOnlyFieldList 2015-11-12 19:50:54 -05:00
msaelices
7624fdb9f8 Fixed #25283 -- Fixed collectstatic crash if a URL contains a fragment with a path.
A @font-face declaration may contain a fragment that looks like a relative path,
e.g. @font-face { src: url('../fonts/font.svg#../path/like/fragment'); }
In this case, an incorrect path was passed to the storage backend, which raised
an error that caused collectstatic to crash.
2015-11-12 19:30:48 -05:00
Aaron Elliot Ross
19a5f6da32 Fixed #25469 -- Added autoescape option to DjangoTemplates backend.
Thanks Aymeric for the initial patch and Carl for review.
2015-11-12 19:14:23 -05:00
Hasan
8c553e7d3f Fixed #25688 -- Made admin.register() disallow an empty list of models. 2015-11-12 09:54:43 -05:00
Simon Charette
c550beb0cc Fixed #25723 -- Made related field checks lookup against their local apps. 2015-11-11 19:33:54 -05:00
Alex Morozov
e171a83b15 Fixed #25548 -- Prevented FormView.form_invalid() from discarding its form argument. 2015-11-11 13:28:34 -05:00
Simon Charette
cc8c02fa0f Refs #25693 -- Added a regression test for to_attr validation on forward m2m. 2015-11-11 12:25:10 -05:00
Simon Charette
4cd5d846d4 Fixed #25730 -- Made Model.__str__() always return str instances.
Thanks to Kevin Turner for the report and Tim for the review.
2015-11-11 12:18:52 -05:00
Marti Raudsepp
d3e3703a15 Fixed #25720 -- Made gettext() return bytestring on Python 2 if input is bytestring.
This is consistent with the behavior of Django 1.7.x and earlier.
2015-11-11 08:56:10 -05:00
Ian Foote
4608573788 Fixed #25693 -- Prevented data loss with Prefetch and ManyToManyField.
Thanks to Jamie Matthews for finding and explaining the bug.
2015-11-10 12:12:07 -05:00
Mattia Larentis
2085d8d5bc Fixed #25170 -- Made assertXMLEqual()/assertXMLNotEqual() ignore leading and trailing whitespace.
Thanks Jacek Bzdak for indepdently contributing a similar fix.
2015-11-09 15:53:30 -05:00
Laura Feier
7862cbda86 Fixed #24576 -- Made deletion of related objects deterministic. 2015-11-09 15:04:48 -05:00
Dwight Gunning
1f29164ced Fixed #6727 -- Made patch_cache_control() patch an empty Cache-Control header. 2015-11-09 14:26:29 -05:00
Marti Raudsepp
1155843a41 Fixed #25683 -- Allowed ModelChoiceField(queryset=...) to accept Managers.
This fixes a regression from refs #25496.
2015-11-09 12:42:36 -05:00
Aymeric Augustin
1014ba026e Fixed debug view crash during autumn DST change.
This only happens if USE_TZ = False and pytz is installed (perhaps not
the most logical combination, but who am I to jugde?)

Refs #23714 which essentially fixed the same problem when USE_TZ = True.

Thanks Florian and Carl for insisting until I wrote a complete patch.
2015-11-07 23:17:33 +01:00
lobziik
7a48f9abf2 Renamed a test file that has no tests. 2015-11-07 21:28:13 +01:00
j0hnsmith
0115f9faa5 Fixed #25692 -- Added natural keys support to Site model. 2015-11-07 21:19:25 +01:00
Claude Paroz
c3531d2f20 Removed ability to pass a geometry string to GIS functions
This was a possible confusion source with column name arguments.
Thanks Sergey Fedoseev for the suggestion.
2015-11-07 16:04:24 +01:00
Claude Paroz
24c1605aa0 Fixed GIS test failures when GDAL is not installed
Thanks Iacopo Spalletti for the report and testing.
2015-11-07 15:12:54 +01:00
Sergey Fedoseev
5f7035cec7 Fixed #25673 -- Made GeometryField.from_db_value set SRID 2015-11-06 20:45:31 +01:00
Ville Skyttä
3ee18400ae Fixed #25668 -- Misc spelling errors 2015-11-03 11:58:13 +02:00
Sergey Fedoseev
a449b7ef99 Fixed #25629 -- Added checks of the number of arguments for GeoDjango DB functions. 2015-11-03 08:20:08 +01:00
Sergey Fedoseev
1b598b4b42 Fixed #25661 -- Fixed checking number of points during list assignment for LinearRing. 2015-11-02 22:38:33 +01:00
Sergey Fedoseev
0a26121797 Refs #25629 -- Added arity class attribute to Func expressions 2015-11-02 20:09:21 +01:00
Sergey Fedoseev
03c6ad7ad4 Fixed #25664 -- Fixed dims for Point 2015-11-02 19:52:16 +01:00
Sergey Fedoseev
7127eb287f Fixed #25659 -- Added missing support for MySQL 5.6.1 GIS functions
Added support for ST_Difference/ST_Intersection/ST_SymDifference.
2015-11-02 19:25:53 +01:00
Sergey Fedoseev
b78226cd3d Fixed #25655 -- Dropped support for GEOS < 3.3 2015-11-01 20:41:52 +01:00
Dheerendra Rathor
06627ef2ca Fixed #25635 -- Made URLValidator allow '+' in scheme. 2015-10-31 17:50:05 -04:00
Sergey Fedoseev
8ad923b9d0 Fixed #25636 -- Dropped support for SpatiaLite < 3.0 2015-10-31 14:22:34 +01:00
Tim Graham
c7b8d5d135 Refs #25550 -- Removed reverse related set assignment in selenium tests. 2015-10-30 21:16:56 -04:00
Tim Graham
ab873e7a68 Refs #24499 -- Removed an obsolete test check for PostGIS 1.5. 2015-10-30 11:02:00 -04:00
Claude Paroz
7d81ee6efc Fixed #16734 -- Set script prefix even outside of requests
Thanks Tim Graham for the review.
2015-10-29 20:12:38 +01:00
Simon Charette
9dcfecb7c6 Fixed #25622 -- Accounted for generic relations in the admin to field validation
Thanks to Jonathan Liuti for the report and Tim Graham for the review.
2015-10-29 13:13:19 -04:00
Dheerendra Rathor
96fe90f535 Fixed #25620 -- Made URLValidator prohibit URLs with consecutive dots in the domain section. 2015-10-29 10:59:22 -04:00
Tim Graham
dbe79d9660 Ignored docutils deprecation warnings in runtests.py. 2015-10-28 13:58:31 -04:00
Daniel Wiesmann
48548d1a47 Refs #25588 -- Added the srid property to GDALRaster
Geometry objects have an srid property, so this addition makes the raster api
more similar to the geometries api.
2015-10-28 15:27:19 +01:00
Ian Foote
32ef48aa56 Fixed #25609 -- Fixed regression in related field nested lookup error. 2015-10-27 13:49:00 -04:00
Simon Charette
976bd519a8 Revert "Fixed #25417 -- Added a field check for invalid default values."
This reverts commit 71ebcb85b9.
2015-10-27 11:02:35 -04:00
Sambhav Satija
ce7dd1273e Fixed #25441 -- Added support for negative filesize to filesizeformat template filter.
Thanks Andrey Yakovlev for the initial patch.
2015-10-27 10:35:45 -04:00
Tim Graham
590b8c1c57 Removed unnecessary app_label='auth' on auth_tests models.
This is a relic of when the tests were stored in contrib.auth.tests.
2015-10-27 08:19:45 -04:00
Tim Graham
5acf203db2 Fixed #25596 -- Fixed regression in password change view with custom user model.
The reverse() added in 50aa1a790c
crashed on a custom user model.
2015-10-27 08:18:22 -04:00
Tim Graham
1f07da3e29 Fixed #25597 -- Fixed crash with SplitArrayField and IntegerField on invalid value. 2015-10-27 08:11:11 -04:00
Tim Graham
9c5e272860 Fixed #25550 -- Deprecated direct assignment to the reverse side of a related set. 2015-10-27 07:57:15 -04:00
Tim Graham
0b5d32faca Fixed #25611 -- Standardized descriptor signatures. 2015-10-26 11:31:16 -04:00
Marten Kenbeek
34af2bc523 Fixed #25610 -- Reverted removal of request.current_app in {% url %} tag.
The deprecation removal in 5e450c52aa
removed too much.
2015-10-26 10:42:20 -04:00
Jon Dufresne
3c7d2ee881 Fixed #25604 -- Added makemigrations --check option.
Command exits with non-zero status if changes without migrations exist.
2015-10-24 14:45:00 -04:00
Sergey Fedoseev
a7bb5af50b Fixed #25583 -- Allowed calling transform with CoordTransform even if SRID is invalid. 2015-10-24 11:39:24 -04:00
Claude Paroz
10ace52a41 Fixed #17133 -- Properly handled successive slashes in incoming requests
Thanks gjanee@ucop.edu for the report and Tim Graham for the review.
2015-10-23 22:18:18 +02:00
Tim Graham
89359347c4 Refs #25589 -- Fixed admin_scripts test failure on Windows.
Traceback (most recent call last):
  File "tests\admin_scripts\tests.py", line 646, in test_startapp_unicode_name
    content = f.read()
  File "lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 46: character maps to <undefined>
2015-10-22 19:38:23 -04:00
Tim Graham
37ea3cb03e Fixed "URLconf" spelling in code comments. 2015-10-22 14:46:42 -04:00
Claude Paroz
c08f85fd54 Fixed #25592 -- Fixed misnamed strictly_above PostGIS lookup
Fixes a regression from 2bd1bbc42. Thanks Daniel Wiesmann for the report
and Tim Graham for the review.
2015-10-22 20:32:31 +02:00
Dheerendra Rathor
59e85f09c6 Fixed #25519 -- Made the admin "View site" link point to sites running on a subpath.
Used request.META['SCRIPT_NAME'] as the site_url if it hasn't been
customized from the default value of '/'.
2015-10-22 13:51:00 -04:00
Yoong Kang Lim
3f300efede Fixed #25589 -- Allowed startapp/project to create apps with Unicode characters in the name. 2015-10-22 13:01:07 -04:00
Claude Paroz
8b5acda821 Fixed #25571 -- Fixed boolean evaluation of ungettext_lazy 2015-10-22 15:17:45 +02:00
Mariusz Felisiak
0f6d51e6a0 Fixed #25470 -- Avoided unnecessary, expensive DATETIME typecast on MySQL. 2015-10-21 19:24:19 -04:00
Sergey Fedoseev
0dbe897ab5 Fixed #25585 -- Allowed setting OGRGeometry srid/srs attributes to None. 2015-10-21 18:54:28 -04:00
matiasb
12aeed8c94 Fixed #24976 -- Fixed missing form label in tabular inline.
If the model form had a form field specified, the label rendered
as "None".
2015-10-21 13:35:50 -04:00
Tim Graham
bab9c09342 Fixed spelling of "unpicklable" in cache tests. 2015-10-21 11:56:30 -04:00
Jon Dufresne
05248a1009 Fixed #25576 -- Added IOBase methods required by TextIOWrapper to HttpResponse. 2015-10-21 10:42:29 -04:00
Sergey Fedoseev
a272db7008 Fixed #25580 -- Allowed None to be set as SRID value. 2015-10-21 09:35:17 +02:00
Andrew Artajos
48888a1a67 Fixed #25501 -- Made the file-based cache backend use the highest pickling protocol. 2015-10-20 13:05:33 -04:00