summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2015-04-16Fixed #24615 -- ordering by expression not part of SELECTAnssi Kääriäinen
Fixed queries where an expression was used in order_by() but the expression wasn't in the query's select clause (for example the expression could be masked by .values() call) Thanks to Trac alias MattBlack85 for the report.
2015-04-15Updated tests to stop leaking models in shared AdminSite.Riccardo Magliocchetti
This would break upcoming changes and AdminSite assumptions about having an app_config for each application that has registered models.
2015-04-15Fixed model_fields tests to use django TestCase.Jon Dufresne
2015-04-14Refs #24385 -- Added tests for distinct sum issue fixed in ↵Edward Henderson
c7fd9b242d2d63406f1de6cc3204e35aaa025233
2015-04-14Fixed #24593 -- Fixed number formatting of readonly IntegerFields in the admin.Eric Rouleau
2015-04-14Fixed #24277 -- Added exception when dict used in QuerySet filteringAlex Wilson
2015-04-14Added tests with number fields for admin.utils.display_for_field().Eric Rouleau
2015-04-14Fixed #24603 -- Allowed Context.update() to be used as a context manager.Tommy Beadle
2015-04-14Fixed #12199 -- Added the ability to use "as" with the firstof template tag.Craig Oldford
2015-04-14Refs #24625 -- Filtered docutils warnings output in testsMarkus Holtermann
Instead of setting ``warning_stream`` in the docutils config overrides to ``False`` I opted for filtering the stderr in the tests to keep the error output showing up in server logs. Thanks Tim Graham for the report and review
2015-04-13Fixed #24611 -- Fixed update() crash with related UUID pk object.Jay Wineinger
2015-04-11Fixed #24625 -- Prevented arbitrary file inclusion in admindocsMarkus Holtermann
Thanks Tim Graham for the review.
2015-04-11Fixed #24624 -- Replaced obsoleted rel.opts in admindocs viewClaude Paroz
Thanks Scott Sanders for the report, and Markus Holtermann and Tim Graham for the reviews. Refs #24381.
2015-04-10Fixed #24514 -- Made migration writer omit models import if it's unused.Christopher Luc
2015-04-09Fixed #24560 -- Added a --dry-run mode to the createcachetable command.Adam Chainz
2015-04-09Fixed #19820 -- Added more helpful error messages to Python deserializer.Richard Eames
2015-04-09Fixed #24578 -- Fixed crash with QuerySet.update() on FK to O2O fields.Tim Graham
Thanks Anssi Kääriäinen for review.
2015-04-09Use mock.patch in migrations testsCurtis Maloney
Currently some of the migrations tests rely on the fact 'input' is aliased because of six, instead of using mock.patch. Replace this code with proper use of mock.patch. Also, replace one case of excessively specific python version check with testing six.PY3
2015-04-07Fixed #24544 -- Fixed get_image_dimensions() on image buffers that Pillow ↵steve
fails to parse. Thanks Steve Kossouho for the report and original patch.
2015-04-07Fixed #24513 -- Made sure a model is only rendered once during reloadsPatryk Zawadzki
This also prevents state modifications from corrupting previous states. Previously, when a model defining a relation was unregistered first, clearing the cache would cause its related models' _meta to be cleared and would result in the old models losing track of their relations.
2015-04-06Fixed #24584 -- Fixed microsecond handling with older MySQLdbJon Dufresne
2015-04-05Fixed #24278 -- Fixed serialization of migration operations.Marten Kenbeek
Fixed MigrationWriter.serialize() to correctly handle migration operations by utilizing OperationWriter. Thanks Piotr Maliński for the report.
2015-04-05Refs #24278 -- Allowed multi-line serializations in OperationWriter.Marten Kenbeek
Changed OperationWriter to support multi-line serialized values with correct indentation.
2015-04-04Fixed #24569 -- Made some translation functions accept None valueClaude Paroz
get_language() can return None when translations are deactivated. Thanks Nicola Peduzzi for the reporti and Tim Graham for the review.
2015-04-04Fixed #24571 -- Restored testserver positional arguments parsingClaude Paroz
Thanks Domas Lapinskas for the report and Tim Graham for the review.
2015-04-02Fixed #24558 -- Made dumpdata mapping ordering deterministic.Simon Charette
Thanks to gfairchild for the report and Claude for the review.
2015-04-02Fixed #24566 -- Added support for serializing timedeltaBaptiste Mispelon
Thanks to knbk for the report.
2015-04-02Fixed mistakes in tests unveiled by version bump to 1.8.1.Tim Graham
Forwardport of e7366ab1f908b8cbf8d7e83037b5f17d101b5ade from stable/1.8.x
2015-04-01Adapted form regression test to new translationsClaude Paroz
2015-04-01Refs #24538 -- Simplified a test per Aymeric's feedback.Tim Graham
2015-04-01Fixed #23441, #24555 -- Improved the behavior of InclusionNode.Preston Timmons
This change: * Makes the InclusionNode cache-safe by removing render-time side effects to its nodelist. * Ensures the render_context stack is properly scoped and reset by updating the render call to use Template.render rather than Nodelist.render.
2015-04-01Fixed #24538 -- Allowed self in Jinja contextTim Heap
Rendering a Jinja template with self in the context threw an error. While self is a reserved variable in Jinja, including self in the context is not an error, so Django should respect that.
2015-03-31Fixed sessions test on Python 3.5; refs #23763.Tim Graham
SimpleCookie.__repr__() changed in https://hg.python.org/cpython/rev/88e1151e8e02
2015-03-30Fixed #24466 -- Added JavaScript escaping in a couple places in the admin.Tim Graham
Thanks Aymeric Augustin and Florian Apolloner for work on the patch.
2015-03-30Fixed #24115 -- Allowed bcrypt hashers to upgrade passwords on rounds change.Tim Graham
Thanks Florian Apolloner for the review.
2015-03-30Fixed #24301 -- Added PostgreSQL-specific aggregate functionsAndriy Sokolovskiy
2015-03-30Fixed #24550 -- Added migration operation description to sqlmigrate outputMarkus Holtermann
Thanks Tim Graham for the review.
2015-03-29Fixed #19259 -- Added group by selected primary keys support.Simon Charette
2015-03-29Refs #24366 -- Fixed recursion depth error in migration graphMarten Kenbeek
Made MigrationGraph forwards_plan() and backwards_plan() fall back to an iterative approach in case the recursive approach exceeds the recursion depth limit.
2015-03-29Refs #24366 -- Renamed arguments in MigrationGraph, renamed testsMarten Kenbeek
2015-03-28Fixed #24537 -- Ignored field order in RenameModel detectionMarkus Holtermann
Thanks to David Sanders for the report and test and Simon Charette for the review.
2015-03-28Fixed skipping of gis_tests when dependencies not installed.Tim Graham
2015-03-28Refs #15779 -- Fixed UserChangeForm regression introduced by 1791a7e75Claude Paroz
Thanks Tim Graham for reporting the regression.
2015-03-27Fixed #24469 -- Refined escaping of Django's form elements in non-Django ↵Moritz Sichert
templates.
2015-03-27Fixed #18773 -- Added logging for template variable resolvingCaroline Simpson
Added a django.template logger without a default handler. Added logging if there is an exception while resolving variables in a template.
2015-03-26Fixed #24505 -- Fixed clash with hidden m2m fields.Marco Fucci
Added support for multiple m2m fields with the same 'to' model and with related_name set to '+'.
2015-03-26Rephrased docstrings to assertions and added querystring test.Bas Peschier
2015-03-26Fixed #19910 -- Added slash to i18n redirect if APPEND_SLASH is set.Bas Peschier
This introduces a force_append_slash argument for request.get_full_path() which is used by RedirectFallbackMiddleware and CommonMiddleware when handling redirects for settings.APPEND_SLASH.
2015-03-25Fixed #24531 -- Improved CommaSeparatedIntegerField validation.Bertrand Bordage
`','`, `'1,,1'`, `',1'` etc. are no longer considered as valid comma-separated integer lists.
2015-03-25Fixed #24394 -- Allowed running tests with empty default dictionary.Andrei Kulakov