summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2016-06-27Fixed #26784 -- Made ForeignKey.validate() pass `model` to router if ↵Ben Demboski
model_instance=None.
2016-06-27Refs #26034 -- Corrected a schema test to work with the correct field state.Jon Dufresne
2016-06-27Fixed #26709 -- Added class-based indexes.Akshesh
Added the AddIndex and RemoveIndex operations to use them in migrations. Thanks markush, mjtamlyn, timgraham, and charettes for review and advice.
2016-06-27Fixed #5897 -- Added the Content-Length response header in CommonMiddlewareClaude Paroz
Thanks Tim Graham for the review.
2016-06-24Fixed #26795 -- Factored out get_changes() in test_autodetector.py.akki
2016-06-24Fixed #26719 -- Normalized email in AbstractUser.clean().Bang Dao + Tam Huynh
2016-06-24Refs #17209 -- Added LoginView and LogoutView class-based viewsClaude Paroz
Thanks Tim Graham for the review.
2016-06-24Refs #24829 -- Made TemplateResponse.content available sooner in exception ↵Claude Paroz
context Thanks Tim Graham for the initial patch.
2016-06-23Removed a test workaround for some old GDAL 1.7.x versions.Tim Graham
2016-06-23Fixed #26791 -- Replaced LiveServerTestCase port ranges with binding to port 0.Tim Graham
2016-06-22Fixed #25920 -- Added support for non-uniform NUMBER_GROUPING.jasisz
2016-06-21Fixed #26781 -- Made table name case change a noop on SQLite.Simon Charette
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-21Refs #21379, #26719 -- Moved username normalization to AbstractBaseUser.Tim Graham
Thanks Huynh Thanh Tam for the initial patch and Claude Paroz for review.
2016-06-21Fixed #25940 -- Added OGRGeometry.from_gml() and GEOSGeometry.from_gml().Sergey Fedoseev
2016-06-21Fixed #26787 -- Documented deleting and reloading of model instance fields.Tim Graham
Thanks Julien Hartmann for the report.
2016-06-21Fixed #26729 -- Allowed overriding a form field's label/help_text in ↵Paulo
Form.__init__() for TabularInline.
2016-06-21Fixed #26785 -- Made Oracle return None rather than empty string for empty ↵Sergey Fedoseev
geometries.
2016-06-21Fixed #26783 -- Fixed SessionMiddleware's empty cookie deletion when using ↵Jon Dufresne
SESSION_COOKIE_PATH.
2016-06-21Fixed #26750 -- Fixed introspection for geography point field with dim=3Claude Paroz
Thanks Yegor Kazantsev for the report and the initial patch.
2016-06-20Refs #22384 -- Readded RegexURLResolver.reverse().Tim Graham
It was removed in 785cc71d5b3300e2702b0b2fc7316e58ca70b563 only because it was untested and unused in Django itself, however, some third-party apps use it.
2016-06-20Fixed #26643 -- Prevented unnecessary AlterModelManagers operations caused ↵Loïc Bistuer
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-20Refs #26666 -- Added ALLOWED_HOSTS validation when running tests.Tobias McNulty
Also used ALLOWED_HOSTS to check for external hosts in assertRedirects().
2016-06-18Fixed #26778 -- Fixed ModelSignal.connect() weak argument.Tim Graham
2016-06-18Fixed #26775 -- Supported dim=3 geography fieldsClaude Paroz
Thanks François-Xavier Thomas for the report.
2016-06-18Refs #26772 -- Added a test for FileField reopening closed files.Paul J Stevens
Thanks Simon Charette for review.
2016-06-18Reverted "Fixed #26644 -- Allowed wrapping NamedTemporaryFile with File."Tim Graham
This reverts commit 1b407050dd53e56686fdd3e168f8cac4f9be8306 as it introduces a regression in the test for refs #26772.
2016-06-18Fixed #24931 -- Made namespaced RegexURLResolvers populate callback strings.Markus Holtermann
Fixed a regression in 2f16ff5a6cbd71fc6c50e88e4087f3657222e90e. Thanks Tim Graham for the review.
2016-06-18Refs #15667 -- Fixed crash when indexing RadioFieldRenderer with ↵Tim Graham
ModelChoiceIterator. Regression in 86573861a95e5a47dc7ff906443117d75b73dca1
2016-06-18Fixed #26753 -- Made GDAL a required dependency for contrib.gisClaude Paroz
Thanks Tim Graham for the review.
2016-06-17Reverted "Fixed #26398 -- Made FieldFile.open() respect its mode argument."Tim Graham
This reverts commit a52a531a8b34f049fba11c3ee7b010af7534bf90 due to regressions described in refs #26772.
2016-06-17Refs #26601 -- Improved backwards-compatibility of DEP 5 middleware ↵Carl Meyer
exception handling.
2016-06-17Moved old-middleware tests in preparation for adding new tests.Carl Meyer
2016-06-17Improved debugging of failed middleware_exceptions tests.Carl Meyer
2016-06-16Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne
2016-06-16Fixed flake8 2.6 warnings.Tim Graham
2016-06-14Fixed #26644 -- Allowed wrapping NamedTemporaryFile with File.Hugo Osvaldo Barrera
914c72be2abb1c6dd860cb9279beaa66409ae1b2 introduced a regression that causes saving a NamedTemporaryFile in a FileField to raise a SuspiciousFileOperation. To remedy this, if a File has an absolute path as a filename, use only the basename as the filename.
2016-06-14Removed usage of a few deprecated unittest assertions.Ville Skyttä
2016-06-13Removed some blank lines per isort.Tim Graham
2016-06-13Fixed #4136 -- Made ModelForm save empty values for nullable CharFields as NULL.Jon Dufresne
Previously, empty values were saved as strings.
2016-06-13Fixed #26748 -- Allowed overriding JSONField's widget with an attribute.Charlie Denton
2016-06-13Fixed #26746 -- Fixed handling of zero priority in Accept-Language header ↵Vytis Banaitis
parsing.
2016-06-11Fixed #26744 -- Fixed a typo in regex for Accept-Language header parsing.Vytis Banaitis
2016-06-11Fixed #26736 -- Fixed crashes in SpatialReference with non-ASCII characters.Sergey Fedoseev
2016-06-11Refs #26677 -- Simplified i18n test cleanups.Ramiro Morales
The fact that we aren't dealing with the Django source tree anymore allows us to drop several tearDown()/addCleanup() calls that were concerned with removing apiece files/dirs/symlinks created by test cases, as we are covered by the removal of the parent temporary tree anyways. Thanks Tim Graham for advice and review.
2016-06-10Fixed #12810 -- Added a check for clashing ManyToManyField.db_table names.Berker Peksag
2016-06-09Fixed #26677 -- Converted some i18n tests to use disposable FS tree.Ramiro Morales
This allows makemessages/compilemessages tests in `test_extraction.py` and `test_compilation.py` to actually run isolated from each other (unaffected by stray FS objects left by cleanup actions failures, debug sessions, etc.) and to take advantage of the parallel tests execution feature like most of the Django test suite. `test_percents.py` gets slightly refactored to not inherit from the new machinery which sets up every test case to copy and run under a temporary tree.
2016-06-09Fixed #4548 -- Added username hint to admin's change_password form.Oliver Sauder
2016-06-09Fixed #26648 -- Added a system check for invalid related_query_name's ↵Michal Petrucha
containing underscores.
2016-06-09Fixed #26734 -- Made iterator class configurable on ModelChoiceField.David Sanders
2016-06-09Fixed #20468 -- Added loaddata --exclude option.Berker Peksag
Thanks Alex Morozov for the initial patch.