summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-12-24Fixed #19505 -- A more flexible implementation for customizable admin ↵Julien Phalip
redirect urls. Work by Julien Phalip. Refs #8001, #18310, #19505. See also 0b908b92a2ca4fb74a103e96bb75c53c05d0a428.
2012-12-24Fixed #19204 -- Replaced python2-style exception syntax.Florian Apolloner
Thanks to garrison for the report and patch.
2012-12-24Fixed a randomly failing test under Python 3.Aymeric Augustin
Refs #17758.
2012-12-24Fixed HTML comparisons of class="foo bar" and class="bar foo" in testsLuke Plant
Refs #17758
2012-12-24Fixed a dependence on set-ordering in testsLuke Plant
2012-12-24Made admin generated changelist URLs independent of dict orderingLuke Plant
2012-12-24Sort HTML attributes on generated formsIan Clelland
2012-12-24Don't rely on dictionary ordering in testsIan Clelland
2012-12-24Use HTML parser to compare html snippetsIan Clelland
2012-12-24Use new TestCase methods for equality comparisonsIan Clelland
2012-12-24Add assertJSONEqual method to TestCaseIan Clelland
2012-12-24Add assertInHTML method to TestCaseIan Clelland
2012-12-22Fixed #15516 -- Updated the ticket life cycle diagram.Aymeric Augustin
2012-12-22Better name for a new testing documentation link.Ramiro Morales
2012-12-22Fixed #19509 -- Fixed crypt/bcrypt non-ascii password encodingClaude Paroz
Also systematically added non-ascii passwords in hashers test suite. Thanks Vaal for the report.
2012-12-22Fixed #19468 -- Decoded request.path correctly on Python 3.Aymeric Augustin
Thanks aliva for the report and claudep for the feedback.
2012-12-22Fixed #19487 -- Used str in the test client's WSGI environ.Aymeric Augustin
This regression was introduced by the unicode_literals patch. The WSGI spec mandates that environ contains native strings.
2012-12-21Fixed #19497 -- Refactored testing docs.Ramiro Morales
Thanks Tim Graham for the review and suggestions.
2012-12-21Fixed #19506 - Remove 'mysite' prefix in model example.Tim Graham
Thanks Mike O'Connor for the report.
2012-12-21Fixed #19387 -- Preserved SafeData status in contrib.messagesClaude Paroz
Thanks Anton Baklanov for the report and the patch.
2012-12-20Fixed a regression in distinct_onAnssi Kääriäinen
Caused by regression fix for #19500.
2012-12-20Fixed #18854 -- Join promotion in disjunction casesAnssi Kääriäinen
The added promotion logic is based on promoting any joins used in only some of the childs of an OR clause unless the join existed before the OR clause addition.
2012-12-20Fixed #19500 -- Solved a regression in join reuseAnssi Kääriäinen
The ORM didn't reuse joins for direct foreign key traversals when using chained filters. For example: qs.filter(fk__somefield=1).filter(fk__somefield=2)) produced two joins. As a bonus, reverse onetoone filters can now reuse joins correctly The regression was caused by the join() method refactor in commit 68847135bc9acb2c51c2d36797d0a85395f0cd35 Thanks for Simon Charette for spotting some issues with the first draft of the patch.
2012-12-20Fixed #19401 -- Ensure that swappable model references are case insensitive.Russell Keith-Magee
This is necessary because get_model() checks are case insensitive, and if the swapable check isn't, the swappable logic gets tied up in knots with models that are partially swapped out. Thanks to chris@cogdon.org for the report and extensive analysis, and Preston for his work on the draft patch.
2012-12-19Fixed #18172 -- Made models with __iter__ usable in ModelMultipleChoiceFieldPatryk Zawadzki
Thanks to Patryk Zawadzki for the patch.
2012-12-19Added PASSWORD_HASHERS to settings reference document.Ramiro Morales
2012-12-18Fixed #19470 - Clarified widthratio example.Tim Graham
Thanks orblivion for the suggestion.
2012-12-18Fixed #19442 - Clarified that raw SQL must be committed.Tim Graham
Thanks startup.canada for the suggestion.
2012-12-18Fixed #17312 - Warned about database side effects in tests.Tim Graham
Thanks jcspray for the suggestion.
2012-12-18Merge pull request #587 from pyriku/19430-license-setup-pyClaude Paroz
Fixed #19430 -- Added 'license' value to setup.py
2012-12-18Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: django/db/models/loading.py django/db/models/options.py
2012-12-18Fixed #19441 -- Created PostgreSQL varchar index when unique=TrueClaude Paroz
Thanks Dylan Verheul for the report and Anssi Kääriäinen for the review.
2012-12-17Replaced '__' with LOOKUP_SEP in sql/query.pyAnssi Kääriäinen
Thanks to Simon Charette for report.
2012-12-17Fixed typo in WidthRatioNode's error.Baptiste Mispelon
2012-12-17Fixed #19485 -- Python 3 compatibility for c2a6b2a4.Aymeric Augustin
Refs #9589.
2012-12-16Made sure connections are actually closed in backends testsAnssi Kääriäinen
2012-12-16Fixed #19197 -- fixed convert_values() for nullable numeric fieldsAnssi Kääriäinen
Cleaned up the implementation of base convert_values() a little, and made sure it accepts None as a value for numeric fields. There are no tests attached. The reason is that not all of the convert_values() accept None as a value for numeric fields (for example sqlite3.convert_values()). The reason the base convert_values() needs to accept None is that this situation might arise in custom compilers for 3rd party backends. It is easy to keep the convert_values() working, so lets do that.
2012-12-16Fixed #19279 - Clarified order of database setup and Django install.Tim Graham
Thanks colinnkeenan for the suggestion.
2012-12-16Fixed #19483 -- Improved import error message in contrib.commentsClaude Paroz
Thanks Valentin Lorentz for the report and the suggested fix.
2012-12-16Replaced the test case hierarchy schema with a vector version.Aymeric Augustin
The OmniGraffle source file is included for future use.
2012-12-16Fixed #16679 -- Use caching to speed up signal sendingAnssi Kääriäinen
2012-12-16Fixed #18718 - Documented django.utils.encoding.filepath_to_uriTim Graham
2012-12-16Added PDF version of SVG file for latexpdf builds.Aymeric Augustin
Thanks Tim Graham for reporting this issue and testing the fix.
2012-12-16Fixed #10790 -- Refactored sql.Query.setup_joins()Anssi Kääriäinen
This is a rather large refactoring. The "lookup traversal" code was splitted out from the setup_joins. There is now names_to_path() method which does the lookup traveling, the actual work of setup_joins() is calling names_to_path() and then adding the joins found into the query. As a side effect it was possible to remove the "process_extra" functionality used by genric relations. This never worked for left joins. Now the extra restriction is appended directly to the join condition instead of the where clause. To generate the extra condition we need to have the join field available in the compiler. This has the side-effect that we need more ugly code in Query.__getstate__ and __setstate__ as Field objects aren't pickleable. The join trimming code got a big change - now we trim all direct joins and never trim reverse joins. This also fixes the problem in #10790 which was join trimming in null filter cases.
2012-12-16Fixed #18816 -- Removed "trim" argument from add_filter()Anssi Kääriäinen
The trim argument was used by split_exclude() only to trim the last join from the given lookup. It is cleaner to just trim the last part from the lookup in split_exclude() directly so that there is no need to burden add_filter() with the logic needed for only split_exclude().
2012-12-16Fixed #19469 -- Removed opts.get_ordered_objects() and related codeAnssi Kääriäinen
The code was dead-code since 2006.
2012-12-16Corrected tests depending on the error message on the AuthenticationForm.Russell Keith-Magee
Refs #19368, and the fix introduced in 27f8129d64292868f6a328f7bf9a1bed67967ff3.
2012-12-15Fixed #19368 -- Ensured that login error messages adapt to changes in the ↵Russell Keith-Magee
User model. Thanks to un33k for the report.
2012-12-15Fixed #19412 -- Added PermissionsMixin to the auth.User heirarchy.Russell Keith-Magee
This makes it easier to make a ModelBackend-compliant (with regards to permissions) User model. Thanks to cdestigter for the report about the relationship between ModelBackend and permissions, and to the many users on django-dev that contributed to the discussion about mixins.
2012-12-15Fixed #19472 -- Documented the testing requirements and tools for custom ↵Russell Keith-Magee
User models. Thanks to gcc for the report.