summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2015-09-23Refs #18081 -- Asserted db constraints are created for fk to proxy models.Simon Charette
2015-09-23Fixed #25407 -- Removed network dependency in GeoIP tests.Anton Baklanov
2015-09-23Refs #24526 -- Made the django logger handle INFO messages.Tim Graham
Without an explicit 'level', only messages at WARNING or higher are handled. This makes the config consistent with the docs which say, "The django catch-all logger sends all messages at the INFO level or higher to the console."
2015-09-23Fixed #25410 -- Fixed empty ClearableFileInput crash on Python 2.Tim Graham
Reverted "Fixes #24727 -- Prevented ClearableFileInput from masking exceptions on Python 2" and added a regression test. This reverts commit 5c412dd8a724b263489c1bd7a2fea381460665d7.
2015-09-22Fixed #24509 -- Added Expression support to SQLInsertCompilerAlex Hill
2015-09-21Refs #23813 -- Moved URLconfs into module and tidied docstrings.Alasdair Nicol
2015-09-21Fixed #25373 -- Added warning logging for exceptions during {% include %} ↵Nick Johnson
tag rendering.
2015-09-21Refs #18773 -- Improved template variable exception logging message.Nick Johnson
2015-09-21Fix import sorting problem.Aymeric Augustin
2015-09-21Fixed #24921 -- set_autocommit(False) + ORM queries.Aymeric Augustin
This commits lifts the restriction that the outermost atomic block must be declared with savepoint=False. This restriction was overly cautious. The logic that makes it safe not to create savepoints for inner blocks also applies to the outermost block when autocommit is disabled and a transaction is already active. This makes it possible to use the ORM after set_autocommit(False). Previously it didn't work because ORM write operations are protected with atomic(savepoint=False).
2015-09-21Renamed descriptor classes for related objects.Aymeric Augustin
The old names were downright confusing. Some seemed to mean the opposite of what the class actually did. The new names follow a consistent nomenclature: (Forward|Reverse)(ManyToOne|OneToOne|ManyToMany)Descriptor. I mentioned combinations that do not exist in the docstring in order to help people who would search for them in the code base.
2015-09-21Fixed #25431 -- Readded inline foreign keys to modelformset instancesClaude Paroz
Too much field exclusions in form's construct_instance() in _post_clean() could lead to some unexpected missing ForeignKey values. Fixes a regression from 45e049937. Refs #13776.
2015-09-21Fixed #24688 -- Added Oracle support for new-style GIS functions.Jani Tiainen
2015-09-21Fixed #23813 -- Added checks for common URL pattern errorsAlasdair Nicol
Thanks jwa and lamby for the suggestions, and timgraham and jarshwah for their reviews.
2015-09-21Fixed #24629 -- Unified Transform and Expression APIsJosh Smeaton
2015-09-20Removed obsolete supports_* auth backend attributes in testsClaude Paroz
2015-09-19Fixed #25296 -- Prevented model related object cache pollution when create() ↵Raphael Merx
fails due to an unsaved object.
2015-09-19Fixed typo in "pbkdf2" test names.Tim Graham
2015-09-19Used more specific assertion in check_framework tests.Alasdair Nicol
2015-09-19Fixed #25160 (again) -- Moved data loss check on reverse relations.Aymeric Augustin
Moved data loss check when assigning to a reverse one-to-one relation on an unsaved instance to Model.save(). This is exactly the same change as e4b813c but for reverse relations.
2015-09-19Refs #13110 -- Fixed mistakes in the new multiple enclosure feed testsUnai Zalakain
2015-09-19Fixed #25424 -- Use force_str for test client URLs.Travis Jensen
urlparse() fails with an AttributeError ("'__proxy__' object has no attribute 'decode'") if reverse_lazy is used to look up the URL (this is exactly the same problem that caused ticket #18776). The solution is to use force_str() on the path before handing it to urlparse().
2015-09-19Fixed #25390 -- Allowed specifying a start migration in squashmigrationsMarkus Holtermann
Thanks Tim Graham for the review.
2015-09-19Fixed #24743, #24745 -- Optimized migration plan handlingMarkus Holtermann
The change partly goes back to the old behavior for forwards migrations which should reduce the amount of memory consumption (#24745). However, by the way the current state computation is done (there is no `state_backwards` on a migration class) this change cannot be applied to backwards migrations. Hence rolling back migrations still requires the precomputation and storage of the intermediate migration states. This improvement also implies that Django does not handle mixed migration plans anymore. Mixed plans consist of a list of migrations where some are being applied and others are being unapplied. Thanks Andrew Godwin, Josh Smeaton and Tim Graham for the review as well as everybody involved on the ticket that kept me looking into the issue.
2015-09-18Fixed #25269 -- Allowed method_decorator() to accept a list/tuple of decorators.fabrizio ettore messina
2015-09-18Fixed #24944 -- Added extra_email_context parameter to password_reset() view.sujayskumar
2015-09-18Fixed #13110 -- Added support for multiple enclosures in Atom feeds.Unai Zalakain
The ``item_enclosures`` hook returns a list of ``Enclosure`` objects which is then used by the feed builder. If the feed is a RSS feed, an exception is raised as RSS feeds don't allow multiple enclosures per feed item. The ``item_enclosures`` hook defaults to an empty list or, if the ``item_enclosure_url`` hook is defined, to a list with a single ``Enclosure`` built from the ``item_enclosure_url``, ``item_enclosure_length``, and ``item_enclosure_mime_type`` hooks.
2015-09-18Fixed #25417 -- Added a field check for invalid default values.Simon Charette
2015-09-18Fixed #24636 -- Added model field validation for decimal places and max digits.Iulia Chiriac
2015-09-18Refs #25422 -- Added a test for a template tag with type annotations.Thomas Orozco
This doesn't work in Django 1.8 but was fixed in Django 1.9 as a side effect of another change.
2015-09-18Fixed #25034 -- Converted caches ImproperlyConfigured error to a system check.Tom Christie
2015-09-17Refs #20625 -- Forwardported tests and release notes for queryset chaining fix.Aric Coady
The issue was fixed on master due to the removal of ValuesQuerySet. Partial forwardport of 7d471fe6626de2b36b97ac04086d8ea307be8288 from stable/1.8.x
2015-09-17Refs #14091 -- Fixed connection.queries on SQLite.Aymeric Augustin
2015-09-17Added a version requirement to mysqlclient in test requirements.Tim Graham
2015-09-17Added a version requirement to python-memcached in test requirements.Tim Graham
2015-09-17Fixed #25400 -- Fixed regression in nonexistent features on gis backends.Daniel Hahler
2015-09-16Refs #25294 -- Moved BoundField to django.forms.boundfield.Moritz Sichert
2015-09-16Refs #25149 -- Fixed regression in admin datetime widget for timezones on ↵Gavin Wahl
the negative side of UTC.
2015-09-16Fixed #24496 -- Added CSRF Referer checking against CSRF_COOKIE_DOMAIN.Matt Robenolt
Thanks Seth Gottlieb for help with the documentation and Carl Meyer and Joshua Kehn for reviews.
2015-09-16Fixed #25294 -- Allowed custom BoundFields on forms.Moritz Sichert
2015-09-15Fixed #25404 -- Added line numbers to TemplateSyntaxError strings.Dave Smith
This makes it much easier to diagnose a test failure when all you have is the stack trace from an uncaught TemplateSyntaxError.
2015-09-14Fixed runtests.py message about parallel processes.Aymeric Augustin
It didn't work anymore since the commit that enabled test parallelization by default because parallel was equal to 0 at that point.
2015-09-14Prevented --parallel from crashing on Windows.Aymeric Augustin
Since --parallel is documented not to work on Windows, it's better to ignore it and run without parallelization than to crash. For example this could simplify cross-platform test scripts.
2015-09-14Fixed #25377 -- Changed Count queries to execute COUNT(*) instead of COUNT('*').Adam Chainz
2015-09-14Fixed #25393 -- Fixed MySQL crash when adding text/blob field with ↵Ville Skyttä
unhashable default.
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-09-12Refs #24919 -- Raised more helpful error message for disabled migrationsMarkus Holtermann
2015-09-12Fixed #24919 -- Allowed disabling of migrations on a per app basisMarkus Holtermann
2015-09-11Fixed #24765 -- Allowed template context updates to flatten a Context.Buddy Lindsey, Jr
2015-09-11Fixed #25382 -- Removed obsolete references to DateQuerySet.Renato Oliveira