Commit Graph

20431 Commits

Author SHA1 Message Date
Marc Tamlyn 20a98d863f Merge pull request #4469 from funkybob/feature/test-tidies
Use mock.patch in migrations tests
2015-04-09 10:04:30 +01:00
Curtis Maloney 88d7fcebde Use mock.patch in migrations tests
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-09 11:16:12 +10:00
Tim Graham 1273a7a0e8 Revert "Fixed #24474 -- Allowed configuring the admin's empty change list value."
This reverts commit 72f769f494.

There are several test failures that need to be fixed.
2015-04-08 20:39:59 -04:00
Loek van Gent 72f769f494 Fixed #24474 -- Allowed configuring the admin's empty change list value. 2015-04-08 20:27:01 -04:00
Tim Graham 0824c02603 Removed unused exception "as" variable. 2015-04-08 13:09:51 -04:00
Tim Graham 6d7784a7b9 Fixed #24602 -- Removed obsolete reference to __metaclass__ in custom model fields docs.
Thanks schinckel for the report.
2015-04-08 08:35:35 -04:00
Tim Graham 3acefcefeb Fixed #24600 -- Fixed inaccurate example in template Context docs.
Thanks pattypatpat for the report.
2015-04-08 07:27:39 -04:00
steve 2fc19b9238 Fixed #24544 -- Fixed get_image_dimensions() on image buffers that Pillow fails to parse.
Thanks Steve Kossouho for the report and original patch.
2015-04-07 19:51:19 -04:00
lampslave 800240cb1d Fixed typo in docs/ref/models/expressions.txt 2015-04-07 13:58:39 -04:00
Tim Graham 981e3b9394 Fixed #24429 -- Doc'ed that Django 1.8 doesn't require an integer PK for custom user models. 2015-04-07 10:45:31 -04:00
Christopher Luc e37d52bd5e Fixed #22993 -- Deprecated skipIfCustomUser decorator 2015-04-07 09:45:32 -04:00
Patrik Lundin f9c212d09a Specified file names for example code in docs/topics/forms/index.txt 2015-04-07 09:35:22 -04:00
Patryk Zawadzki 0385dad073 Fixed #24513 -- Made sure a model is only rendered once during reloads
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-07 14:49:47 +02:00
Marios Zindilis 7a7c797234 Fixed typo in docs/intro/tutorial02.txt 2015-04-07 07:41:05 -04:00
Thomas Güttler 566c936236 Added admonition about reusable apps and AUTH_USER_PROFILE. 2015-04-06 19:49:46 -04:00
Jon Dufresne 2cf58e80d1 Fixed #24584 -- Fixed microsecond handling with older MySQLdb 2015-04-06 22:43:51 +02:00
Tim Graham ad53213066 Fixed #24562 -- Renamed get_major_version() to get_main_version()
This reflects the actual behavior of the method.
2015-04-06 09:19:34 -04:00
Marten Kenbeek e8e4f978dd Fixed #24278 -- Fixed serialization of migration operations.
Fixed MigrationWriter.serialize() to correctly handle migration
operations by utilizing OperationWriter.

Thanks Piotr Maliński for the report.
2015-04-05 20:26:21 +02:00
Marten Kenbeek d597174bd4 Refs #24278 -- Allowed multi-line serializations in OperationWriter.
Changed OperationWriter to support multi-line serialized values with
correct indentation.
2015-04-05 20:19:24 +02:00
Tim Graham 2cf28b6921 Added myself to the list of releasers. 2015-04-04 08:08:53 -04:00
Tim Graham 1e59d779e1 Added the technical board for the 1.9 release cycle.
The current board has been re-elected.
2015-04-04 08:08:35 -04:00
Tim Graham 8c4827ec1d Added link to download page to find supported versions. 2015-04-04 08:00:10 -04:00
Claude Paroz 7a0d9b5cda Fixed #24569 -- Made some translation functions accept None value
get_language() can return None when translations are deactivated.
Thanks Nicola Peduzzi for the reporti and Tim Graham for the review.
2015-04-04 10:54:16 +02:00
Claude Paroz 426b63ba04 Fixed #24571 -- Restored testserver positional arguments parsing
Thanks Domas Lapinskas for the report and Tim Graham for the
review.
2015-04-04 10:46:29 +02:00
Sam Thursfield 1119063c69 Fixed #24556 -- Added reminder about HTTPS to passwords docs. 2015-04-03 10:55:11 -04:00
Alex Hill 07ba148d9e Cleaned up use of context manager in SQLite schema editor 2015-04-03 09:13:55 -04:00
Preston Timmons a1842e3299 Updated docstring for firstof tag to reflect new auto-escaping behavior. 2015-04-03 07:28:18 -04:00
Ian Lee 90c4c300a8 Fixed minor typo in Cryptography section of 1.8 release notes 2015-04-03 00:12:27 -07:00
Matt Hooks 2c39f282b8 Fixed typo in django.core.files.File docstring. 2015-04-02 20:38:22 -04:00
Simon Charette 5bc3123479 Fixed #24558 -- Made dumpdata mapping ordering deterministic.
Thanks to gfairchild for the report and Claude for the review.
2015-04-02 15:21:43 -04:00
Tim Graham 147ac85613 Removed Django 1.6 from the Python version chart. 2015-04-02 14:21:01 -04:00
Baptiste Mispelon 30a3c2f74c Fixed #24566 -- Added support for serializing timedelta
Thanks to knbk for the report.
2015-04-02 17:21:20 +02:00
Tim Graham 0f941f57ba Fixed mistakes in tests unveiled by version bump to 1.8.1.
Forwardport of e7366ab1f9 from stable/1.8.x
2015-04-02 08:14:08 -04:00
Ryan Hall 8f98732379 Added Ryan Hall to AUTHORS. Refs #24554 2015-04-01 19:05:32 -04:00
Tim Graham 9cc29bbbca Fixed spelling in docs/internals/howto-release-django.txt 2015-04-01 19:05:16 -04:00
Krzysztof Gogolewski 2350b78dab Fixed typo in 1.9 release notes. 2015-04-01 19:00:50 -04:00
Tim Graham 8583a60547 Documented that only wheel files are uploaded to PyPI for prereleases. 2015-04-01 16:41:04 -04:00
Tim Graham bf63de5824 Fixed typo in docs/internals/howto-release-django.txt 2015-04-01 16:41:04 -04:00
Aymeric Augustin 8520551478 Pointed Jinja2 users to Babel instead of makemessages. 2015-04-01 22:37:11 +02:00
Tim Graham 1b605838bf Added stub release notes for 1.8.1. 2015-04-01 16:08:15 -04:00
Tim Graham 61d6c5d02e Added release date for Django 1.8. 2015-04-01 15:30:32 -04:00
Claude Paroz a2e56db8a7 Removed unused import in makemessages 2015-04-01 20:01:12 +02:00
Claude Paroz 3f4e778402 Refs #24500 -- Avoided locale.getpreferredencoding in makemessages
Fixes a regression introduced in 53c2cf1e.
2015-04-01 19:57:48 +02:00
Claude Paroz 2112b7d789 Adapted form regression test to new translations 2015-04-01 19:51:50 +02:00
Claude Paroz 88dfe544f6 Fetched updated contrib translations from Transifex
Forward port of 5483c66f85 from stable/1.8.x
2015-04-01 19:51:50 +02:00
Claude Paroz 7dad681e2e Fetched updated core translations from Transifex
Forward port of d1b206daf8 from stable/1.8.x
2015-04-01 19:51:49 +02:00
Claude Paroz dda1f7bff7 Removed source strings from translated po files
Forward port of 05a781a47 from stable/1.8.x
2015-04-01 19:51:49 +02:00
Tim Graham a184a99123 Refs #24538 -- Simplified a test per Aymeric's feedback. 2015-04-01 13:08:43 -04:00
Preston Timmons 0808ccce38 Fixed #23441, #24555 -- Improved the behavior of InclusionNode.
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-01 13:02:19 -04:00
Tim Heap 4ea1909d3c Fixed #24538 -- Allowed self in Jinja context
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-04-01 12:26:57 -04:00