summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2013-11-23Allowed running the test suite without memcached (!)Aymeric Augustin
2013-11-23Fixed #21488 -- Multiple locales treatment in i18n commands.Ramiro Morales
Removed multiple locales separated by commas variation (that wasn't working as documented) in favor of simply allowing use of the ``--locale``/``-l`` options more than once for ``makemessages`` and ``compilemessages``. Thanks Romain Beylerian for the report and Claude, Simon for their help. 8750296918072c97a51f6809d19828ce3f1b8d40 from stable/1.6.x.
2013-11-23Fixed #21012 -- New API to access cache backends.Curtis Maloney
Thanks Curtis Malony and Florian Apolloner. Squashed commit of the following: commit 3380495e93f5e81b80a251b03ddb0a80b17685f5 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 14:18:07 2013 +0100 Looked up the template_fragments cache at runtime. commit 905a74f52b24a198f802520ff06290a94dedc687 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 14:19:48 2013 +0100 Removed all uses of create_cache. Refactored the cache tests significantly. Made it safe to override the CACHES setting. commit 35e289fe9285feffed3c60657af9279a6a2cfccc Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 12:23:57 2013 +0100 Removed create_cache function. commit 8e274f747a1f1c0c0e6c37873e29067f7fa022e8 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 12:04:52 2013 +0100 Updated docs to describe a simplified cache backend API. commit ee7eb0f73e6d4699edcf5d357dce715224525cf6 Author: Curtis Maloney <curtis@tinbrain.net> Date: Sat Oct 19 09:49:24 2013 +1100 Fixed #21012 -- Thread-local caches, like databases.
2013-11-22Fixed #21443 -- Cannot show debug info on PY3's importlibBouke Haarsma
Thanks productions@zaziork.co.uk for the review.
2013-11-22Fixed some flake8 issuesAlex Gaynor
2013-11-22Fixed missing admindocs' site_headerBouke Haarsma
2013-11-22Fixed #21460 -- Reenabled proper template precedence in find_templatePablo Martín
Refs #20806. Thanks Unai Zalakain for the review.
2013-11-21Updated admindocs to use class-based viewsClaude Paroz
Thanks Bouke Haarsma for the review.
2013-11-21Fixed #21405 -- Prevented queryset overwrite in BaseModelAdminClaude Paroz
Thanks guido@20tab.com for the report and Tim Graham for the analyze.
2013-11-21Made minor optimizations to admin_ordering testsClaude Paroz
2013-11-21Fixed #21476 -- Cache tests make an incorrect use of `HttpRequest`Unai Zalakain
Using `django.test.client.RequestFactory` solves the problem and cleans up all the `get_request` mess.
2013-11-21Fixed #21431 -- GenRel->FK list_filter regression in adminAnssi Kääriäinen
Report, analysis and tests from stephenmcd.
2013-11-21Refs #8261 -- Fixed regression introduced by fd219fa.Loic Bistuer
ModelAdmin displayed the "View on site" link even if the Model didn't define the `get_absolute_url()` method.
2013-11-20Fixed #21472 -- Fixed inline formsets display when parent pk is 0Claude Paroz
Thanks agale031176@gmail.com for the report.
2013-11-20Fixed #21458 -- Made check_for_language more resistant to malformed input.Baptiste Mispelon
Thanks to Sergey Sorokin for the report and to Bouke Haarsma for the review.
2013-11-20Fixed #21469 -- Allow set objects in Meta.unique_together.Baptiste Mispelon
Thanks to Tim for the review.
2013-11-19Fixed #21361 -- allowed access self.value() from SimpleListFilter lookupVajrasky Kok
Reviewed by Chris Medrela.
2013-11-19Fixed #15179 -- middlewares not applied for test client login()Unai Zalakain
Requests made with django.test.Client.login() and logout() respect defaults defined in django.test.Client instantiation and are processed through middleware. Thanks to Loic for the reviews.
2013-11-18Fixed some Signal.disconnect calls from 058e434.Loic Bistuer
This would go unnoticed by the test suite because receivers are removed automatically when they are garbage collected. Changed all Signal.connect calls to hold strong references to ensure we clean up after ourselves.
2013-11-18Fixed #21457 -- Allowed fixture file name to contain dotsClaude Paroz
Thanks Keryn Knight for the report.
2013-11-18Merged the signals and signals_regress test packages.Loic Bistuer
This patch also made the tests less likely to pollute the global state in case of failure.
2013-11-18Fixed #21397 -- Re-added flexibility to TypedChoiceField coercionClaude Paroz
Thanks Elec for the report and Simon Charette for the review.
2013-11-16Fixed #21428 -- editable GenericRelation regressionAnssi Kääriäinen
The GenericRelation refactoring removed GenericRelations from model._meta.many_to_many. This had the side effect of disallowing editable GenericRelations in ModelForms. Editable GenericRelations aren't officially supported, but if we don't fix this we don't offer any upgrade path for those who used the ability to set editable=True in GenericRelation subclass. Thanks to Trac alias joshcartme for the report and stephencmd and Loic for working on this issue.
2013-11-16Fixed #21447 -- Restored code erroneously removed in ↵Baptiste Mispelon
20472aa827669d2b83b74e521504e88e18d086a1. Also added some tests for HttpRequest.__repr__. Note that the added tests don't actually catch the accidental code removal (see ticket) but they do cover a codepath that wasn't tested before. Thanks to Tom Christie for the report and the original patch.
2013-11-15Fixed the use of the -ise suffix, where -ize is preferedAlex Gaynor
2013-11-14Fixed #21432 -- DateTimeQuery now copies tzinfo when cloning.Loic Bistuer
Thanks Enrique Martínez for the report and @bmispelon for the tests.
2013-11-13Fixed #21410 -- prefetch_related() for ForeignKeys with related_name='+'Loic Bistuer
Regression introduced by commit 9777442. Thanks to trac username troygrosfield for the report and test case.
2013-11-11Flake8 fixes -- including not runnign flake8 over a backported fileAlex Gaynor
2013-11-11Fixed #9523 -- Restart runserver after compiling apps translationsBouke Haarsma
Django also uses locales provided by apps, which also might change. Also when i18n is disabled, there is no need for watching translation files.
2013-11-11Fixed #21351 -- Replaced memoize with Python's lru_cache.Bouke Haarsma
Replaced the custom, untested memoize with a similar decorator from Python's 3.2 stdlib. Although some minor performance degradation (see ticket), it is expected that in the long run lru_cache will outperform memoize once it is implemented in C. Thanks to EvilDMP for the report and Baptiste Mispelon for the idea of replacing memoize with lru_cache.
2013-11-09Fixed #21383 -- Added request details in SuspiciousOperation messagesClaude Paroz
2013-11-08Flake8 fix -- correct number of newlines between top level definitionsAlex Gaynor
2013-11-08Fixed #17529 -- get_template_from_string default arguments breakUnai Zalakain
``get_template_from_string`` default arguments were breaking ``assertTemplateUsed``. The solution has been to return only the names of the templates with a ``name`` attribute distinct of ``None``. The default ``name`` kwarg of ``Template`` has been changed to ``None``, more pythonic than ``'<Unknown Template>'``.
2013-11-08Fixed #13970 -- Made SelectDateWidget use the standard widget is_required ↵Claude Paroz
attribute Thanks mitar for the report and Tim Graham for the review.
2013-11-07Fixed a couple flake8 warnings.Tim Graham
2013-11-08Fixed #5849 -- Strip whitespace from blocktransBouke Haarsma
Add the trimmed option to the blocktrans tag to trim any newlines and whitespace from its content. This allows the developer to indent the blocktrans tag without adding new lines and whitespace to the msgid in the PO file. Thanks to mpessas for the initial patch and Dmitri Fedortchenko for the report.
2013-11-07Merge pull request #1850 from unaizalakain/ticket_13725Anssi Kääriäinen
Fixed #13725 -- take url scheme into account in assertRedirects Thanks to Loic for review.
2013-11-07Fixed #13725 -- take url scheme into account in assertRedirectsUnai Zalakain
Scheme is handled correctly when making comparisons between two URLs. If there isn't any scheme specified in the location where we are redirected to, the original request's scheme is used. If present, the scheme in ``expected_url`` is the one used to make the comparations to.
2013-11-07Fixed #20536 -- rewrite of the file based cache backendJaap Roes
* Safer for use in multiprocess environments * Better random culling * Cache files use less disk space * Safer delete behavior Also fixed #15806, fixed #15825.
2013-11-07Fixed #17001 -- Custom querysets for prefetch_related.Loic Bistuer
This patch introduces the Prefetch object which allows customizing prefetch operations. This enables things like filtering prefetched relations, calling select_related from a prefetched relation, or prefetching the same relation multiple times with different querysets. When a Prefetch instance specifies a to_attr argument, the result is stored in a list rather than a QuerySet. This has the fortunate consequence of being significantly faster. The preformance improvement is due to the fact that we save the costly creation of a QuerySet instance. Thanks @akaariai for the original patch and @bmispelon and @timgraham for the reviews.
2013-11-07Fixed #20600 -- ordered distinct(*fields) in subqueriesAnssi Kääriäinen
2013-11-07Fixed #11320 -- exclude() too aggressive in join promotionAnssi Kääriäinen
2013-11-07Fixed #21376 -- New implementation for query join promotion logicAnssi Kääriäinen
This commit introduced a new class JoinPromoter that can be used to abstract away join promotion problems for complex filter conditions. Query._add_q() and Query.combine() now use the new class. Also, added a lot of comments about why join promotion is done the way it is. Thanks to Tim Graham for original report and testing the changes, and for Loic Bistuer for review.
2013-11-06flake8 fixesAlex Gaynor
2013-11-06Massive migration optimiser improvements + RenameModel opnAndrew Godwin
2013-11-06Added more tests and documentation for dictsort.Baptiste Mispelon
It's possible to use something like {{ foo|dictsort:'bar.baz' }} but this wasn't tested or documented.
2013-11-05Fixed #18419 -- Full backwards compatibility for old language codesBouke Haarsma
Improved documentation about zh-* deprecation and upgrade path. Thanks to Baptiste Mispelon for the code reviews.
2013-11-05Fixed #10461 -- bug in generic relation + annotate() caseAnssi Kääriäinen
This issue was fixed when the contenttype restriction was moved from where clause to the join clause. So, this is tests only addition.
2013-11-04Fixed #18149 -- Changed language codes for ChineseBouke Haarsma
Language codes for Chinese are zh_Hans (Simplified) and zh_Hant (Traditional). Added support for browsers that still send the deprecated language codes. Thanks to Olli Wang for the report.
2013-11-04Merge pull request #1821 from Bouke/tickets/14170Aymeric Augustin
#14170 -- Reset i18n cache when settings changed