Tim Graham
a81fe17b3e
Promoted RemovedInDjango21Warning to error in Django's test suite.
2016-07-06 14:34:33 -04:00
Erik Romijn
8db889eaf7
Fixed #18682 -- Expanded explanation in stale content type deletion. ( #6869 )
2016-07-03 15:55:14 +02:00
Akshesh
f7e00b40c5
Refs #26808 -- Avoided clashing keyword arguments in test_autodetector
...
Factor method signatures in test_autodetector to avoid clashing keyword
arguments when introducing indexes.
2016-07-03 09:01:07 +02:00
Baptiste Mispelon
a9215b7c36
Refs #21548 -- Skipped tests that rely on pillow when it's not installed
2016-07-02 15:46:16 +02:00
Tim Graham
5f8da22984
Fixed a urlpatterns_reverse test on Python 2 non-ASCII path.
2016-07-01 09:09:31 -04:00
Berker Peksag
12b4280444
Fixed #21548 -- Added FileExtensionValidator and validate_image_file_extension.
2016-06-30 09:08:50 -04:00
Andrew Nester
baff4dd37d
Fixed #25292 -- Fixed crash in ManyToManyField.through_fields check.
2016-06-30 08:53:38 -04:00
Jon Dufresne
16614dcd5c
Fixed #25694 -- Removed incorrect _uniq suffix on index names during migrations.
2016-06-29 14:47:29 -04:00
David Sanders
a84344bc53
Fixed #19513 , #18580 -- Fixed crash on QuerySet.update() after annotate().
2016-06-29 14:08:13 -04:00
David Sanders
06acb3445f
Added a test for updating an annotated queryset.
2016-06-29 12:36:37 -04:00
Berker Peksag
1a3bf236c0
Avoided db queries in test_indentation_whitespace.
2016-06-29 09:56:27 -04:00
Christopher Grebs
a9e188ccd6
Fixed #26119 -- Fixed URLValidator crash on URLs with brackets.
2016-06-28 15:43:43 -04:00
Berker Peksag
52a991d976
Fixed #24694 -- Added support for context_processors to Jinja2 backend.
2016-06-28 14:30:54 -04:00
Eduard Stepanov
49b4596cb4
Fixed #26786 -- Avoided redundant max value validators on integer fields.
2016-06-28 11:39:20 -04:00
Tim Graham
c9ae09addf
Replaced use of TestCase.fail() with assertRaises().
...
Also removed try/except/fail antipattern that hides exceptions.
2016-06-28 11:21:26 -04:00
Berker Peksag
c1b6f554e4
Fixed #15091 -- Allowed passing custom encoder to JSON serializer.
2016-06-28 11:10:07 -04:00
Aaron Elliot Ross
6bf7964023
Fixed #26171 -- Made MySQL create an index on ForeignKeys with db_contraint=False.
...
Refactored "Prevented unneeded index creation on MySQL-InnoDB" (2ceb10f
)
to avoid setting db_index=False.
2016-06-28 08:22:20 -04:00
Claude Paroz
5fe1c92250
Improved test assertion in wsgi tests
...
Thanks Berker Peksag for the suggestion.
2016-06-28 12:02:51 +02:00
Shabda Raaj
b0acb1e73e
Fixed #26779 -- Added extra_context parameter to admin's i18n_javascript view.
2016-06-27 15:37:32 -04:00
Ben Demboski
2224a56631
Fixed #26784 -- Made ForeignKey.validate() pass `model` to router if model_instance=None.
2016-06-27 13:33:37 -04:00
Jon Dufresne
d47f6d75ef
Refs #26034 -- Corrected a schema test to work with the correct field state.
2016-06-27 12:13:15 -04:00
Akshesh
156e2d59cf
Fixed #26709 -- Added class-based indexes.
...
Added the AddIndex and RemoveIndex operations to use them in migrations.
Thanks markush, mjtamlyn, timgraham, and charettes for review and advice.
2016-06-27 10:41:01 -04:00
Claude Paroz
9588718cd4
Fixed #5897 -- Added the Content-Length response header in CommonMiddleware
...
Thanks Tim Graham for the review.
2016-06-27 10:44:57 +02:00
akki
ca77b50905
Fixed #26795 -- Factored out get_changes() in test_autodetector.py.
2016-06-24 21:45:35 -04:00
Bang Dao + Tam Huynh
09119dff14
Fixed #26719 -- Normalized email in AbstractUser.clean().
2016-06-24 10:37:38 -04:00
Claude Paroz
78963495d0
Refs #17209 -- Added LoginView and LogoutView class-based views
...
Thanks Tim Graham for the review.
2016-06-24 10:45:13 +02:00
Claude Paroz
742ea51413
Refs #24829 -- Made TemplateResponse.content available sooner in exception context
...
Thanks Tim Graham for the initial patch.
2016-06-24 10:22:30 +02:00
Tim Graham
9f66302797
Removed a test workaround for some old GDAL 1.7.x versions.
2016-06-23 16:24:18 -04:00
Tim Graham
81cdcb66bc
Fixed #26791 -- Replaced LiveServerTestCase port ranges with binding to port 0.
2016-06-23 12:04:05 -04:00
jasisz
b5a1c3a6f5
Fixed #25920 -- Added support for non-uniform NUMBER_GROUPING.
2016-06-22 17:28:49 -04:00
Simon Charette
c2e62fd1ae
Fixed #26781 -- Made table name case change a noop on SQLite.
...
SQLite disgresses from the SQL standard by ignoring case of quoted identifiers.
Thanks to laozzzi for the report and Tim for the review.
2016-06-21 16:37:06 -04:00
Tim Graham
39805686b3
Refs #21379 , #26719 -- Moved username normalization to AbstractBaseUser.
...
Thanks Huynh Thanh Tam for the initial patch and Claude Paroz for review.
2016-06-21 16:19:37 -04:00
Sergey Fedoseev
5ce660cd65
Fixed #25940 -- Added OGRGeometry.from_gml() and GEOSGeometry.from_gml().
2016-06-21 15:46:27 -04:00
Tim Graham
20d1cb33c2
Fixed #26787 -- Documented deleting and reloading of model instance fields.
...
Thanks Julien Hartmann for the report.
2016-06-21 14:39:17 -04:00
Paulo
9c2d5a8d33
Fixed #26729 -- Allowed overriding a form field's label/help_text in Form.__init__() for TabularInline.
2016-06-21 14:26:47 -04:00
Sergey Fedoseev
ea4665066b
Fixed #26785 -- Made Oracle return None rather than empty string for empty geometries.
2016-06-21 14:06:29 -04:00
Jon Dufresne
d13881bd34
Fixed #26783 -- Fixed SessionMiddleware's empty cookie deletion when using SESSION_COOKIE_PATH.
2016-06-21 11:03:25 -04:00
Claude Paroz
140c235026
Fixed #26750 -- Fixed introspection for geography point field with dim=3
...
Thanks Yegor Kazantsev for the report and the initial patch.
2016-06-21 15:22:21 +02:00
Tim Graham
4e400dcb79
Refs #22384 -- Readded RegexURLResolver.reverse().
...
It was removed in 785cc71d5b
only because
it was untested and unused in Django itself, however, some third-party
apps use it.
2016-06-20 14:22:27 -04:00
Loïc Bistuer
2eb7cb2fff
Fixed #26643 -- Prevented unnecessary AlterModelManagers operations caused by the manager inheritance refactor.
...
This also makes migrations respect the base_manager_name and
default_manager_name model options.
Thanks Anthony King and Matthew Schinckel for the initial patches.
2016-06-20 12:55:57 -04:00
Tobias McNulty
17e661641d
Refs #26666 -- Added ALLOWED_HOSTS validation when running tests.
...
Also used ALLOWED_HOSTS to check for external hosts in assertRedirects().
2016-06-20 11:07:46 -04:00
Tim Graham
9bf8d50a67
Fixed #26778 -- Fixed ModelSignal.connect() weak argument.
2016-06-18 20:45:38 -04:00
Claude Paroz
8ba44ecda0
Fixed #26775 -- Supported dim=3 geography fields
...
Thanks François-Xavier Thomas for the report.
2016-06-18 21:48:32 +02:00
Paul J Stevens
b45852c263
Refs #26772 -- Added a test for FileField reopening closed files.
...
Thanks Simon Charette for review.
2016-06-18 11:06:56 -04:00
Tim Graham
cd217de610
Reverted "Fixed #26644 -- Allowed wrapping NamedTemporaryFile with File."
...
This reverts commit 1b407050dd
as it
introduces a regression in the test for refs #26772 .
2016-06-18 11:06:56 -04:00
Markus Holtermann
625b8e9295
Fixed #24931 -- Made namespaced RegexURLResolvers populate callback strings.
...
Fixed a regression in 2f16ff5a6c
.
Thanks Tim Graham for the review.
2016-06-18 10:39:32 -04:00
Tim Graham
26d0023ccc
Refs #15667 -- Fixed crash when indexing RadioFieldRenderer with ModelChoiceIterator.
...
Regression in 86573861a9
2016-06-18 10:33:37 -04:00
Claude Paroz
f7a363ee1d
Fixed #26753 -- Made GDAL a required dependency for contrib.gis
...
Thanks Tim Graham for the review.
2016-06-18 10:58:02 +02:00
Tim Graham
7def55c3f6
Reverted "Fixed #26398 -- Made FieldFile.open() respect its mode argument."
...
This reverts commit a52a531a8b
due to
regressions described in refs #26772 .
2016-06-17 21:04:02 -04:00
Carl Meyer
7d1b69dbe7
Refs #26601 -- Improved backwards-compatibility of DEP 5 middleware exception handling.
2016-06-17 10:00:39 -07:00