Commit Graph

8092 Commits

Author SHA1 Message Date
Daniel Lindsley 1e594b257e [1.8.x] Fixed #23984 -- Added Javascript i18n documentation
This fleshes out the documentation around all of the exported
Javascript functions available from the ``javascript_catalog``
view.

Backport of 8ca9bc5ec3 from master
2015-04-16 08:19:30 -04:00
Abdulrahman Alotaibi 5678e4b93a [1.8.x] Fixed #24644 -- Added HTTP_ACCEPT to example headers list.
Backport of 62261ddd0f from master
2015-04-16 07:39:33 -04:00
Tim Graham 6e5e1a380c [1.8.x] Fixed #24645 -- Documented use of HStoreExtension.
Backport of d3bf5e7b00 from master
2015-04-16 07:25:38 -04:00
Anssi Kääriäinen 70ff455a35 [1.8.x] Fixed #24615 -- ordering by expression not part of SELECT
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.
Backport of fb5c7748da from master.
2015-04-16 09:42:42 +02:00
Simon Charette a988cc8f18 [1.8.x] Fixed typos in the 1.7.7 release notes.
Backport of 28e8978325 from master
2015-04-14 22:14:52 -04:00
Tim Graham 62012b071e [1.8.x] Removed docs for removed transaction APIs.
Backport of 6b8c969878 from master
2015-04-14 13:53:18 -04:00
Markus Holtermann c8b89964de [1.8.x] Fixed title in 1.7.8 release notes
Refs 309142dba1

Backport of 825bb0ab08 from master
2015-04-14 19:28:03 +02:00
Andrew Pinkham b1d83209d0 [1.8.x] Fixed #24635 -- Updated deprecated urls.py examples in default project template.
Backport of 0b5abb0321 from master
2015-04-14 12:58:31 -04:00
peterfarrell 309142dba1 [1.8.x] Fixed #24637 -- Fixed database introspection with SQLite 3.8.9.
Backport of f8e8853b51 from master
2015-04-14 11:30:21 -04:00
Tim Graham 42f9bbd9d9 [1.8.x] Fixed typos in docs/ref/templates/api.txt
Backport of c612786cf1 from master
2015-04-14 07:58:36 -04:00
Maxime Lorant e560bc2a3e [1.8.x] Fixed formatting in docs/ref/templates/builtins.txt
Backport of 6023312dde from master
2015-04-14 07:05:57 -04:00
Jay Wineinger 496800b3bf [1.8.x] Fixed #24611 -- Fixed update() crash with related UUID pk object.
Backport of 923da0274a from master
2015-04-13 12:20:41 -04:00
Afriza N. Arief 3928270495 [1.8.x] Fixed typo in docs/howto/deployment/wsgi/apache-auth.txt
Backport of b295fcd19c from master
2015-04-13 07:51:08 -04:00
Markus Holtermann 3862826fed [1.8.x] Fixed #24625 -- Prevented arbitrary file inclusion in admindocs
Thanks Tim Graham for the review.

Backport of 09595b4fc6 from master
2015-04-11 21:12:09 +02:00
Claude Paroz 774d09a7dd [1.8.x] Fixed #24624 -- Replaced obsoleted rel.opts in admindocs view
Thanks Scott Sanders for the report, and Markus Holtermann and
Tim Graham for the reviews. Refs #24381.
Backport of 4e7ed8d0d from master.
2015-04-11 15:34:02 +02:00
andredelorme 190afb8618 [1.8.x] Fixed typo in docs/ref/contrib/admin/index.txt
Backport of d5d92260bb from master
2015-04-09 13:44:31 -04:00
Tim Graham b1dc128a03 [1.8.x] Fixed #24578 -- Fixed crash with QuerySet.update() on FK to O2O fields.
Thanks Anssi Kääriäinen for review.

Backport of 10b4c010ab2cdaa6ba8bfaec3e3540299ea77be from master
2015-04-09 08:24:07 -04:00
Tim Graham d11e87bff5 [1.8.x] Fixed #24602 -- Removed obsolete reference to __metaclass__ in custom model fields docs.
Thanks schinckel for the report.

Backport of 6d7784a7b9 from master
2015-04-08 08:36:41 -04:00
Tim Graham 9e87017a38 [1.8.x] Fixed #24600 -- Fixed inaccurate example in template Context docs.
Thanks pattypatpat for the report.

Backport of 3acefcefeb from master
2015-04-08 07:30:28 -04:00
lampslave e2294b453c [1.8.x] Fixed typo in docs/ref/models/expressions.txt
Backport of 800240cb1d from master
2015-04-07 13:59:20 -04:00
Tim Graham 993074d78d [1.8.x] Fixed #24429 -- Doc'ed that Django 1.8 doesn't require an integer PK for custom user models.
Backport of 981e3b9394 from master
2015-04-07 10:47:48 -04:00
Patrik Lundin b3d36c3514 [1.8.x] Specified file names for example code in docs/topics/forms/index.txt
Backport of f9c212d09a from master
2015-04-07 09:35:39 -04:00
Patryk Zawadzki 9f632dc702 [1.8.x] 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.

Backport of 0385dad073 from master
2015-04-07 14:56:33 +02:00
Marios Zindilis f5681f1cbf [1.8.x] Fixed typo in docs/intro/tutorial02.txt
Backport of 7a7c797234 from master
2015-04-07 07:41:46 -04:00
Thomas Güttler ffa5a7550d [1.8.x] Added admonition about reusable apps and AUTH_USER_PROFILE.
Backport of 566c936236 from master
2015-04-06 19:50:23 -04:00
Jon Dufresne 551d4bb46a [1.8.x] Fixed #24584 -- Fixed microsecond handling with older MySQLdb
Backport of 2cf58e80d from master.
2015-04-06 22:45:36 +02:00
Marten Kenbeek 773387ce42 [1.8.x] 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.

Backport of e8e4f978dd from master
2015-04-05 20:29:27 +02:00
Tim Graham 9b815399d2 [1.8.x] Added link to download page to find supported versions.
Backport of 8c4827ec1d from master
2015-04-04 08:00:30 -04:00
Claude Paroz 3a76276212 [1.8.x] 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.
Backport of 7a0d9b5cda from master.
2015-04-04 10:58:54 +02:00
Claude Paroz 7821f856a6 [1.8.x] Fixed #24571 -- Restored testserver positional arguments parsing
Thanks Domas Lapinskas for the report and Tim Graham for the
review.
Backport of 426b63ba04 from master.
2015-04-04 10:48:40 +02:00
Sam Thursfield 5cc0407e45 [1.8.x] Fixed #24556 -- Added reminder about HTTPS to passwords docs.
Backport of 1119063c69 from master
2015-04-03 10:55:35 -04:00
Ian Lee dcf2bbf0f0 [1.8.x] Fixed minor typo in Cryptography section of 1.8 release notes
Backport of 90c4c300a8 from master
2015-04-03 07:27:15 -04:00
Tim Graham f718691ec8 [1.8.x] Removed Django 1.6 from the Python version chart.
Backport of 147ac85613 from master
2015-04-02 14:22:29 -04:00
Baptiste Mispelon 09188b5024 [1.8.x] Fixed #24566 -- Added support for serializing timedelta
Thanks to knbk for the report.

Backport of 30a3c2f74c from master.
2015-04-02 17:41:08 +02:00
Krzysztof Gogolewski b0512db5c4 [1.8.x] Fixed typo in docs/internals/deprecation.txt 2015-04-01 19:01:44 -04:00
Aymeric Augustin ae4d21e159 [1.8.x] Pointed Jinja2 users to Babel instead of makemessages.
Backport of 8520551 from master
2015-04-01 22:37:39 +02:00
Tim Graham 0c01913d55 [1.8.x] Added stub release notes for 1.8.1.
Backport of 1b605838bf from master
2015-04-01 16:18:47 -04:00
Tim Graham 2011c7a031 [1.8.x] Added release date for Django 1.8.
Backport of 61d6c5d02e from master
2015-04-01 15:31:16 -04:00
Joost Rijneveld 9e9914701a [1.8.x] Fixed typo in docs/ref/templates/builtins.txt
Backport of 48ddc66219 from master
2015-03-31 21:21:50 -04:00
Kostochko Dmitriy c2674c2103 [1.8.x] Fixed typo in docs/topics/cache.txt
Backport of d026eb6366 from master
2015-03-31 21:16:26 -04:00
Tim Graham 793ecf6db7 [1.8.x] Documented jinja2 install requirement.
Backport of 56286542db from master
2015-03-31 07:45:02 -04:00
Jorge Barata González 2bddc74b42 [1.8.x] Fixed #15590 -- Documented how the path of a FileField can be changed.
Thanks simon29 for report, and freakboy3742, floledermann,
jacob, claudep and collinanderson for discussing the task.

Backport of 931a340f1f from master
2015-03-30 10:39:14 -04:00
Christopher Luc c4e8f21a9c [1.8.x] Fixed #24281 -- Improved docs for timezone handling for auto_now and auto_now_add
Thanks djbug for the report and Aymeric Augustin and Carl Meyer for the
review.

Backport of 8119876d4a from master
2015-03-29 23:38:51 +02:00
Tim Graham a70dea2c06 [1.8.x] Fixed #24541 -- Clarified ModelFormSet's handling of initial data.
Backport of 6de3a1e2c3 from master
2015-03-28 08:59:50 -04:00
Tim Graham b0846a040e [1.8.x] Fixed syntax highlighting in docs/topics/auth/default.txt
Backport of 3e132406e3 from master
2015-03-28 07:51:37 -04:00
SaeX 6f69e77a9e [1.8.x] Fixed typo in docs/topics/forms/modelforms.txt
Backport of 19e41a9799 from master
2015-03-28 07:40:54 -04:00
Moritz Sichert 44a05a8a91 [1.8.x] Fixed #24469 -- Refined escaping of Django's form elements in non-Django templates.
Backport of 1f2abf784a from master
2015-03-27 20:01:41 -04:00
Tim Graham 6a2f46f238 [1.8.x] Fixed #24519 -- Clarified location of templates directory in tutorial 2.
Backport of 2acf9d099d from master
2015-03-27 09:58:44 -04:00
Tim Graham 17c3a26ac2 [1.8.x] Added some missing newlines in docs/ref/validators.txt.
Backport of f4cc0c40a8 from master
2015-03-25 18:32:48 -04:00
David Seddon ef61b69447 [1.8.x] Corrected typo in documentation
Backport of 0f6f80c2e7 from master
2015-03-25 13:44:13 -04:00
Tim Graham 0dc986d1c8 [1.8.x] Fixed #24361 -- Clarified docs on reconfiguring logging.
Thanks Tuttle for the report and draft patch, and Carl Meyer for
help and review.

Backport of c633667da3 from master
2015-03-24 12:26:25 -04:00
Matt Seymour 09933aef68 [1.8.x] Fixed #24501 -- Improved auth.decorators.user_passes_test() example.
Backport of fca14cd3f2 from master
2015-03-24 10:30:30 -04:00
Bas Peschier 015a9b928a [1.8.x] Fixed #13525 -- Added tests and docs for nested parameters in URL patterns.
When reversing, only outer parameters are used if captured parameters are
nested. Added tests to check the edge cases and documentation for the
behavior with an example to avoid it.

Backport of 23a5d64f40 from master
2015-03-23 08:43:58 -04:00
Iacopo Spalletti 6da4ce5365 [1.8.x] Fixed #23814 -- Pointed localflavor documentation to external package
Edited localflavor doc to point to the external package documentation,
leaving just the 'How to migrate' section in Django.

Backport of 87fed94440 from master.
2015-03-22 15:36:44 +01:00
Josh Smeaton e654123f7f Fixed #24485 -- Allowed combined expressions to set output_field 2015-03-22 17:41:12 +11:00
David Seddon 744d9a10ef [1.8.x] Refs #14645 -- Documented bug with exclude() and multi-value relations
Backport of 6770b7ecd2 from master
2015-03-20 17:51:57 -04:00
Claude Paroz 5da3153d56 [1.8.x] Fixed #23520 -- Explained that custom plural forms should be avoided
Thanks aruseni for the report.
Backport of 556eb67701 from master.
2015-03-20 20:46:02 +01:00
Tim Graham 5cd551409e [1.8.x] Fixed #24503 -- Added docs on LANGUAGE_CODE fallback change in 1.8.
Thanks Pakal and Claude.

Backport of 8219eabbba from master
2015-03-20 12:10:18 -04:00
Tim Graham 770427c289 [1.8.x] Made is_safe_url() reject URLs that start with control characters.
This is a security fix; disclosure to follow shortly.
2015-03-18 19:23:21 -04:00
Tim Graham 5447709a57 [1.8.x] Fixed an infinite loop possibility in strip_tags().
This is a security fix; disclosure to follow shortly.
2015-03-18 19:23:21 -04:00
Tim Graham 5a8ef2a3cf [1.8.x] Added stub release notes for security releases. 2015-03-18 19:23:21 -04:00
Karl Hobley a8c53041f9 [1.8.x] Fixed #24495 -- Allowed unsaved model instance assignment check to be bypassed.
Backport of 81e1a35c36 from master
2015-03-18 19:12:46 -04:00
Tim Graham 4cc501205d [1.8.x] Updated location of database backend data_types attribute in docs.
Backport of d9a30ed190 from master
2015-03-17 20:04:30 -04:00
Tim Graham 0c92913bb0 [1.8.x] Updated links to latest version of PostGIS docs.
Backport of 53d11c6821 from master
2015-03-17 18:35:51 -04:00
Tim Graham ddb95d6d53 [1.8.x] Refs #24487 -- Added upgrade tips about removal of SortedDict.
Thanks Pascal Chambon for the initial patch.

Backport of c5c8751147 from master
2015-03-17 13:42:54 -04:00
Tim Graham 717bbd473c [1.8.x] Updated location of gis_tests in docs.
Backport of 64b9393ae2 from master
2015-03-17 11:35:41 -04:00
Josh Smeaton a0cebe82b5 [1.8.x] Refs #24485 -- Renamed some expression types
Backport of 88d798d71a from master
2015-03-17 08:40:45 -04:00
John Giannelos e150bbd4d6 [1.8.x] Fixed #24427 -- Stopped writing migration files in dry run mode when merging.
Also added display of migration to stdout when verbosity=3.

Backport of 8758a63ddb from master
2015-03-16 19:45:55 -04:00
Preston Timmons ff71d6b8de [1.8.x] Documented Context.get() method.
Backport of 4d9414098b from master
2015-03-16 13:13:47 -04:00
Josh Smeaton 09062e9509 [1.8.x] Fixed #24486 -- Documented method to provide output_field to mixed F expressions
Backport of 820381d38b from master
2015-03-16 11:56:09 -04:00
Adrian Andreias 63b998a653 [1.8.x] Fixed allow_migrate() signature in router examples.
Backport of 937643a1f2 from master
2015-03-16 09:39:41 -04:00
HerHde 6dcbfc0700 [1.8.x] Added missing punctuation in some comments in tutorial 5.
Backport of 39573a11db from master
2015-03-16 08:24:58 -04:00
Steven Das f2db113f51 [1.8.x] Added comma to improve readability in 1.7 release notes.
Backport of 4f494ed0c6 from master
2015-03-16 08:17:01 -04:00
Matthew Wilkes 22a67d22e9 [1.8.x] Refs #24354 -- Prevented repointing of relations on superclasses when migrating a subclass's name change
Forwardport of test and release note from stable/1.7.x

Backport of ae87ad005f from master
2015-03-14 15:47:10 -04:00
Floris den Hengst bd36f2d432 [1.8.x] Fixed doc typos.
Backport of e42a720ba2 from master
2015-03-14 12:29:27 -04:00
Tim Graham 5b91802718 [1.8.x] Refs #24462 -- Emphasized that order_by() clears previous ordering.
Backport of b9d9ab23bd from master
2015-03-13 15:42:03 -04:00
Andrei Kulakov 937c8a5a14 [1.8.x] Fixed #24052 -- Doc'd how to write data migrations with models in multiple apps.
Backport of b089759d60 from master
2015-03-13 13:24:18 -04:00
Claude Paroz f115694547 [1.8.x] Documented gdal DataSource encoding parameter
Thanks Max Demars for the suggestion and Tim Graham for the review.
Backport of a8991b9b9f from master.
2015-03-13 16:41:37 +01:00
Remco Kranenburg 6f555e54f7 [1.8.x] Refs #23559 -- warned about consequences of letting users edit User model in admin.
Backport of f6b09a7f85 from master
2015-03-13 08:51:24 -04:00
Ian Lee 06085024f6 [1.8.x] Added link to section in docs/howto/custom-template-tags.txt.
Backport of 56cd87a5af from master
2015-03-13 08:26:28 -04:00
Ian Lee 606e436a37 [1.8.x] Fixed typo in docs/howto/custom-template-tags.txt.
Backport of 7614efa2f9 from master
2015-03-13 08:14:30 -04:00
Ian Lee 77564c6f5a [1.8.x] Documented how to use a non-root subdirectory with mod_wsgi.
Backport of 7f8588d22e from master
2015-03-12 20:09:56 -04:00
Steven Das e1657cc37f [1.8.x] Fixed typo in docs/ref/models/fields.txt
Backport of 53bc6e2e98 from master
2015-03-12 19:16:22 -04:00
Aksel Ethem fee18ce415 [1.8.x] Fixed #24364 -- Doc'ed that ManifestStaticFileStorage shouldn't be used during testing.
Backport of b4d8b16e51 from master
2015-03-12 09:23:57 -04:00
ldrumm def39428bf [1.8.x] Fixed wrong operator in iri_to_uri() docs
Backport of 27ad12a9b8 from master
2015-03-12 13:49:07 +01:00
Dan Fellin 9f39715509 [1.8.x] Fixed typo in docs/topics/forms/modelforms.txt.
Backport of 6ff826e12e from master
2015-03-11 19:58:14 -04:00
Sean Wang e0e2df412f [1.8.x] Fixed #24414 -- Added examples of Prefetch object usage to the docs.
Backport of a3e89f13df from master
2015-03-11 12:39:50 -04:00
Preston Timmons 2982143dac [1.8.x] Fixed typo in current_app deprecation note.
Backport of 6b605be5fe from master
2015-03-11 12:36:08 -04:00
Claude Paroz 12e199356e [1.8.x] Fixed download instructions for cities shapefile
Thanks Daniel Wiesmann for spotting the issue.
Backport of 57d42aef97 from master.
2015-03-10 19:44:27 +01:00
Claude Paroz e2816f1ff9 [1.8.x] Updated GIS docs wrt GIS test paths
Backport of 1825365152 from master.
2015-03-10 18:01:29 +01:00
Erik Romijn 846a970106 [1.8.x] Fixed #23903 -- Configured Sphinx to autogenerate django-admin manpage
Backport of f66c2bdc0f from master
2015-03-10 08:15:40 -04:00
Calvin Jeong 6e81786f92 [1.8.x] Fixed typo in docs/ref/database.txt
Backport of cefbbb9db3 from master
2015-03-10 07:12:39 -04:00
Psilo Cybin b25e542ecd [1.8.x] Fixed #24456 -- Added links to topics/forms/modelforms.txt.
Backport of 866e71140f from master
2015-03-09 20:53:05 -04:00
Floris den Hengst 9853844ed3 [1.8.x] Fixed #24432 -- Added docs for ManyToManyFields that reside in and refer to the same model.
Backport of b9b8411129 from master
2015-03-09 20:46:26 -04:00
Tim Graham ffa4ff5e8c [1.8.x] Added stub release notes for 1.7.7.
Backport of ea9157f681 from master
2015-03-09 13:10:09 -04:00
Baptiste Mispelon 35d68e8e76 [1.8.x] Refs #24461 -- Added test/release notes for XSS issue in ModelAdmin.readonly_fields
This issue was fixed by refs #24464.
2015-03-09 10:15:12 -04:00
Tim Graham 980d604bf2 [1.8.x] Clarified an item in 1.7.6 release notes.
Backport of 300fdbbebb from master
2015-03-09 10:11:44 -04:00
Erik Romijn d16e4e1d6f [1.8.x] Fixed #24464 -- Made built-in HTML template filter functions escape their input by default.
This may cause some backwards compatibility issues, but may also
resolve security issues in third party projects that fail to heed warnings
in our documentation.

Thanks Markus Holtermann for help with tests and docs.

Backport of fa350e2f30 from master
2015-03-09 09:31:07 -04:00
Tim Graham 83269b2935 [1.8.x] Fixed typo in docs/howto/custom-template-tags.txt
Backport of 63f2dd4ad7 from master
2015-03-09 07:06:32 -04:00
Rik 930fc4db7b [1.8.x] Fixed #21661 -- Expanded authentication views documentation
Backport of eb9b7abb83 from master.
2015-03-08 20:40:33 +01:00
Jean-Louis Fuchs 1ae2df6bfc [1.8.x] Fixed #24447 -- Made migrations add FK constraints for existing columns
When altering from e.g. an IntegerField to a ForeignKey, Django didn't
add a constraint.

Backport of f4f0060fea from master
2015-03-07 14:15:27 +01:00
Marten Kenbeek bd7c879d5a [1.8.x] Stressed authentication should be successful before logging in a user.
Backport of 8e744fa150 from master
2015-03-05 12:18:13 -05:00
Aymeric Augustin 2bef57f3fb [1.8.x] Improved get_media_prefix template tag example.
Backport of 9a4a9a8a49 from master
2015-03-05 10:00:05 -05:00
Ross Brunton 72539a5f29 [1.8.x] Fixed #24379 -- Documented that remote user example disables ModelBackend.
Backport of 6b28e957df from master
2015-03-02 19:57:12 -05:00
Tim Graham cc525e31bb [1.8.x] Fixed #13015 -- Clarified language about model instances attached to forms.
Backport of a40a34a4b2 from master
2015-03-02 18:45:27 -05:00
Andrew Pinkham ac6bc2c090 [1.8.x] Fixed #24439 -- Removed incorrect make_object_list attributes in CBV docs.
Backport of fea45eff5a from master
2015-03-02 13:33:42 -05:00
Ian Lee ed25758556 [1.8.x] Added syntax highlighting for apache code blocks
Backport of fde4857fb8 from master
2015-03-02 12:37:07 -05:00
Alex Shaindlin 5a3b59370c [1.8.x] Improved wording in tutorial 1.
Backport of dcdef1fe2e from master
2015-02-27 17:54:27 -05:00
Tim Graham 9d6f0dce13 [1.8.x] Fixed #24359 -- Cleaned up docs/ref/exceptions.html
Backport of 2b19b3a031 from master
2015-02-27 13:51:29 -05:00
Tim Graham 31a1f96bd3 [1.8.x] Added stub release notes for 1.7.6.
Backport of 71820721a1 from master
2015-02-25 09:11:43 -05:00
Tim Graham a9ab8bd4dd [1.8.x] Added release date for 1.7.5 release.
Backport of aca73737da from master
2015-02-25 09:03:38 -05:00
Tim Graham 81911f29b7 [1.8.x] Reverted "Fixed #24325 -- Documented change in ModelForm.save() foreign key access."
This reverts commit 0af3822dc3.
It's obsoleted by refs #24395.

Backport of d298b1ba50 from master
2015-02-24 11:51:10 -05:00
Kenneth Kam a752a2c951 [1.8.x] Fixed #23762 -- clarified CACHE_MIDDLEWARE_ANONYMOUS_ONLY deprecation in docs
Backport of e83aba0e2c from master
2015-02-23 09:23:49 -05:00
Ian Lee 04c262aea9 [1.8.x] Broke long lines in code examples.
The website only renders code blocks at 96 chars, and therefore
long code lines get wrapped. Manually breaking the lines prevents
the wrapping from occurring.

Backport of 00fbd8fd52 from master
2015-02-23 07:46:00 -05:00
Emin Mastizada ff2e0896a3 [1.8.x] Added formats for the Azerbaijani locale.
Backport of dda2a3cf4c from master
2015-02-23 07:37:42 -05:00
Michael Manfre ed941ef2d0 Fixed signature of BaseDatabaseOperations.date_interval_sql()
Backport of 7fa7dd48c4 from master
2015-02-23 00:04:57 -05:00
Tim Graham ddc1e0c0fb [1.8.x] Updated tutorial to use explicit relative imports.
Backport of b2f331dc68 from master
2015-02-22 14:20:25 -05:00
Tim Graham 576c1096d2 [1.8.x] Corrected sqlmigrate output in tutorial 1.
Backport of ff5e47e7a4 from master
2015-02-22 12:29:39 -05:00
Tim Graham fbddd946ad [1.8.x] Fixed #24371 -- Cautioned against trying to switch databases.
Backport of 7901eccf2e from master
2015-02-22 10:12:15 -05:00
Sean Wang f0780df608 [1.8.x] Fixed #24358 -- Corrected code-block directives for console sessions.
Backport of eba6dff581 from master
2015-02-22 09:36:51 -05:00
Loic Bistuer 3a6c37fce4 [1.8.x] Fixed #24351, #24346 -- Changed the signature of allow_migrate().
The new signature enables better support for routing RunPython and
RunSQL operations, especially w.r.t. reusable and third-party apps.

This commit also takes advantage of the deprecation cycle for the old
signature to remove the backward incompatibility introduced in #22583;
RunPython and RunSQL won't call allow_migrate() when when the router
has the old signature.

Thanks Aymeric Augustin and Tim Graham for helping shape up the patch.

Refs 22583.

Conflicts:
	django/db/utils.py

Backport of bed504d70b from master
2015-02-20 21:55:50 +07:00
Andrei Kulakov 564487601e [1.8.x] Fixed #23932 -- Added how-to on migrating unique fields.
Backport of 1f9e44030e from master
2015-02-20 21:53:15 +07:00
Tim Graham 18dceab05b [1.8.x] Fixed typo in path to is_safe_url()
Backport of dd0b487872 from master
2015-02-20 09:22:17 -05:00
Marc Tamlyn 3886338c1d [1.8.x] Update converters to take a consistent set of parameters.
As suggested by Anssi. This has the slightly strange side effect of
passing the expression to Expression.convert_value has the expression
passed back to it, but it allows more complex patterns of expressions.

Backport of 32d4db66b9 from master
2015-02-20 11:47:48 +00:00
Aymeric Augustin cc4effba0b [1.8.x] Set context.template instead of context.engine while rendering.
This opens more possibilities, like accessing context.template.origin.

It also follows the chain of objects instead of following a shortcut.

Backport of 1bfcc95 from master
2015-02-19 22:10:56 +01:00
Tim Graham e4df10668c [1.8.x] Added an import to docs/topics/testing/advanced.txt example.
Backport of 32b67b3fd1 from master
2015-02-17 13:53:57 -05:00
Tim Graham 730fb593ad [1.8.x] Fixed #24335 -- Bumped required psycopg2 version to 2.4.5 (2.5 for contrib.postgres).
Backport of 3adc5f1ee6 from master
2015-02-17 06:21:59 -05:00
Tim Graham fb9551189d [1.8.x] Fixed #24350 -- Freshened up database install topic section.
Backport of 35f0cae19d from master
2015-02-16 14:59:57 -05:00
Tim Graham 50ec49c087 [1.8.x] Removed a note about old versions of MySQLdb.
Backport of f3bc7c5447 from master
2015-02-16 14:29:30 -05:00
Carl Meyer e63d9b98e7 [1.8.x] Fixed #23892 -- Clarified compatibility policy for migrations.
Backport of e35c70bef4 from master
2015-02-16 10:12:13 -05:00
Aymeric Augustin e8950668ca [1.8.x] Deprecated TEMPLATE_DEBUG setting.
Backport of 15b711b from master.
2015-02-15 20:48:48 +01:00
Aymeric Augustin 69c662c981 [1.8.x] Documented how to set up the Jinja2 environment.
This may also help with "Why do context processors not work in Jinja2
templates?" etc.

Backport of 9fbd302 from master
2015-02-15 20:44:40 +01:00
Aymeric Augustin 87e9cad4a4 [1.8.x] Fixed #24318 -- Set the transaction isolation level with psycopg >= 2.4.2.
Backport of 76356d96 from master
2015-02-14 18:52:28 +01:00
Claude Paroz a1fc97c1a7 [1.8.x] Fixed #24144 -- Documented that GEOSGeometry.envelope can return a point
Thanks Manel Clos for the report.
Backport of 1379165b35 from master.
2015-02-14 16:20:58 +01:00
Tim Graham 8657e7caaa [1.8.x] Fixed #24325 -- Documented change in ModelForm.save() foreign key access.
Backport of 0af3822dc3 from master
2015-02-14 08:09:27 -05:00
Loic Bistuer 20b621eb3c [1.8.x] Fixed #24289 -- Reversed usage of Field.many_to_one and one_to_many.
Thanks Carl Meyer and Tim Graham for the reviews and to all involved
in the discussion.

Backport of 18c0aaa912 from master
2015-02-14 02:42:06 +07:00
Joe Simpson 8277f5d7d0 [1.8.x] Added each_context() and a template tip to custom admin view docs.
Backport of 648e516b8d from master
2015-02-13 10:38:29 -05:00
Markus Holtermann bd80fa6b0f [1.8.x] Fixed #24184 -- Prevented automatic soft-apply of migrations
Previously Django only checked for the table name in CreateModel
operations in initial migrations and faked the migration automatically.
This led to various errors and unexpected behavior. The newly introduced
--fake-initial flag to the migrate command must be passed to get the
same behavior again. With this change Django will bail out in with a
"duplicate relation / table" error instead.

Thanks Carl Meyer and Tim Graham for the documentation update, report
and review.

Backport of f287bec583 from master
2015-02-13 15:21:10 +01:00
Tim Graham 4c948c7c9d [1.8.x] Fixed #24332 -- Fixed contrib.sites create_default_site() when 'default' DATABASES is empty.
Backport of e8cf4f8abe from master
2015-02-13 07:02:37 -05:00
Tim Graham 6476fa73d3 [1.8.x] Forwardported item in 1.7.5 release notes.
Backport of a93c5fb2bf from master
2015-02-12 14:06:21 -05:00
Thomas Güttler 6b8c8d7e18 [1.8.x] Clarified timeout=0 in cache docs.
Backport of e519ee1d35 from master
2015-02-12 10:32:56 -05:00
Josh Smeaton a6ea62aeaf [1.8.x] Refs #14030 -- Improved expression support for python values
Backport of e2d6e14662 from master
2015-02-12 08:53:03 +11:00
Tim Graham 411028df53 [1.8.x] Updated docs and runtests.py for removal of tests from contrib.
Backport of 7cf3a5786b from master
2015-02-11 12:05:55 -05:00
Josh Smeaton 3518d51697 [1.8.x] Fixed #24200 -- Made introspection bypass statement cache
Backport of 1fbe8a2de3 from master
2015-02-10 23:42:16 +02:00
Tim Graham a8b70d251d [1.8.x] Sorted imports with isort; refs #23860.
Backport of 0ed7d15563 from master
2015-02-09 14:24:06 -05:00
Markus Holtermann edbf6de753 [1.8.x] Revert "Fixed #24075 -- Prevented running post_migrate signals when unapplying initial migrations of contenttypes and auth"
This reverts commit 737d24923a.

Backport of 2832a9b028 from master
2015-02-07 20:35:20 +01:00
Peter Inglesby b6323302e0 [1.8.x] Fixed docs typo
Backport of a8f1c70dce from master
2015-02-07 18:47:17 +01:00
Collin Anderson fc8e1e0c10 [1.8.x] Fixed E265 comment style
Backport of db77915c9f from master
2015-02-06 09:35:08 -05:00
Tim Graham 6adc23d6b6 [1.8.x] Removed gather_profile_stats.py
This script uses the unmaintained hotshot module (gone on Python 3)
and doesn't seem to be Django specific in any way.

Backport of 388d986b8a from master
2015-02-06 08:55:02 -05:00
minusf 5bc9904b35 [1.8.x] Removed inaccurate sentence about PO files in translation docs.
Backport of aea103b6a5 from master
2015-02-06 07:46:14 -05:00
Tom Christie f5749252ea [1.8.x] Improved nested ArrayField example
Backport of 737b184d91 from master
2015-02-05 11:35:23 +01:00
Josh Schneier 16e3910e9c [1.8.x] Fixed typos of "select_related" in docs and tests.
Backport of 7d363ed432 from master
2015-02-04 07:32:34 -05:00
Tim Graham dd83bab931 [1.8.x] Demoted "Installing a distribution-specific package" in install notes.
Backport of 281fc03474 from master
2015-02-03 16:38:05 -05:00
Tim Graham ff39de1e1e [1.8.x] Added a "Writing migrations" how-to.
Backport of 570912a97d from master
2015-02-03 13:46:56 -05:00
minusf b35c226154 [1.8.x] Fixed typos in docs/ref/forms/validation.txt.
Backport of 66f5aa9fa5 from master
2015-02-03 12:27:16 -05:00
Anssi Kääriäinen 43b0131fb5 [1.8.x] Fixed #23617 -- Added get_pk_value_on_save()
The method is mainly intended for use with UUIDField. For UUIDField we
want to call the field's default even when primary key value is
explicitly set to None to match the behavior of AutoField.

Thanks to Marc Tamlyn and Tim Graham for review.

Backport of 8adc59038c from master
2015-02-03 09:25:55 -05:00
Tim Graham 5fdd74f4be [1.8.x] Fixed broken links in class based views flattend index; refs #24250.
Backport of 9a391fbd61 from master
2015-02-03 09:12:08 -05:00
Tim Graham 6454716264 [1.8.x] Fixed #24250 -- Corrected mistakes in FormMixin docs.
Backport of 5d193d042a from master
2015-02-03 08:42:49 -05:00
Aymeric Augustin f87457a460 [1.8.x] Fixed #24168 -- Allowed selecting a template engine in a few APIs.
Specifically in rendering shortcuts, template responses, and class-based
views that return template responses.

Also added a test for render_to_response(status=...) which was missing
from fdbfc980.

Thanks Tim and Carl for the review.

Backport of 2133f31 from master.

Conflicts:
	docs/topics/http/shortcuts.txt
	tests/generic_views/test_base.py
2015-02-03 08:32:14 +01:00
Matt Westcott ef90ca5f42 [1.8.x] Fixed #24255 -- Specifed 'fields' parameter in modelformset_factory / inlineformset_factory examples.
Backport of 8d64aae883 from master
2015-02-02 10:47:42 -05:00
Tim Graham 6d0538bd8c [1.8.x] Simplified a versionchanged notes for LiveServerTestCase. 2015-02-01 21:06:27 -05:00
Tim Graham 28bb0ad199 [1.8.x] Fixed #24208 -- Documented changes in private model relations.
Backport of 888054bff7 from master
2015-01-31 11:03:08 -05:00
Claude Paroz c77dd64402 [1.8.x] Fixed #14483 -- Allowed using subqueries with GIS lookups
Backport of a0b5f15ea5 from master.
2015-01-30 20:29:05 +01:00
Andrei Kulakov 3d3c7a62c8 [1.8.x] Updated recommendation for testing keyword arg in custom fields.
Backport of dbabf43920 from master
2015-01-30 08:30:03 -05:00
Tim Graham df68751134 [1.8.x] Fixed #24164 -- Fixed Oracle GIS limited aggregation test failure.
Backport of 29c0073335 from master
2015-01-30 06:34:36 -05:00
Tim Graham df7cca6dff [1.8.x] Added stub 1.7.5 release notes.
Backport of ac6033d883 from master
2015-01-28 06:39:11 -05:00
Markus Holtermann 29fa0e3c66 [1.8.x] Corrected naming of method and attribute
Backport of 335df82a3f from master
2015-01-27 19:48:46 +01:00
Tim Graham 617121cd4a [1.8.x] Added 1.4.19 release notes.
Backport of 6f8418089c from master
2015-01-27 11:48:27 -05:00
Markus Holtermann 645fe136c4 [1.8.x] Refs #24104 -- Added missing release notes
Forwardport of 3d4a826174 from stable/1.7.x
2015-01-27 16:05:27 +01:00
Collin Anderson 09e8985f25 [1.8.x] Fixed #24190 -- Clarified len(queryset)
Backport of ee23e03637 from master
2015-01-24 10:18:14 -05:00
Ng Zhi An 56015c01c4 [1.8.x] Fixed #24170 -- Implemented decompress for BaseRangeField widgets
Backport of 4669b6a807 from master
2015-01-23 15:07:03 -05:00
Claude Paroz bc93568500 [1.8.x] Fixed warning leak in static.serve() test
Partial forward port of b1bf8d64fb from 1.7.x. Refs #24193.
2015-01-23 09:05:46 +01:00
Simon Charette 90d9bf5ba4 [1.8.x] Fixed #24186 -- Fixed a typo in the admin docs.
Thanks to Keryn Knight for the report.

Backport of dccf41cff0 from master
2015-01-20 11:56:02 -05:00
Fabio C. Barrionuevo da Luz e69eea73d9 [1.8.x] Fixed #24177 -- Added documentation about database view support in inspectdb
Backport of bd691f4586 from master
2015-01-20 01:09:08 +01:00
Markus Holtermann e55cb91bd4 [1.8.x] Fixed #24163 -- Removed unique constraint after index on MySQL
Thanks Łukasz Harasimowicz for the report.

Backport of 5792e6a88c from master
2015-01-19 16:55:25 +01:00
Tim Graham 0b3e3e21cf [1.8.x] Added deprecation docs for legacy lookup support; refs #16187.
Backport of 8e435a5640 from master
2015-01-19 10:45:50 -05:00
Tim Graham dd0707c3ca [1.8.x] Added missing items to deprecation timeline/1.7 release notes.
Backport of ecf109f215 from master
2015-01-18 21:24:09 -05:00
Tim Graham f31ed5c934 [1.8.x] Clarified deprecation of forms.forms.get_declared_fields(); refs #19617.
Backport of 89e9f81601 from master
2015-01-18 16:07:44 -05:00
Tim Graham 4af4ccfb30 [1.8.x] Clarified deprecation of test.utils.TestTemplateLoader.
Backport of 7468c948b6 from master
2015-01-18 14:20:15 -05:00
Tim Graham 390559a75c [1.8.x] Clarified a contrib.sites deprecation and added to 1.7 release notes.
Backport of ba27f89587 from master
2015-01-18 13:44:53 -05:00
Tim Graham 737cd4ff3d [1.8.x] Clarified contrib.contenttypes.generic deprecation; refs #19774. 2015-01-18 13:43:02 -05:00
Tim Graham 8822d0bf7d [1.8.x] Removed usage of deprecated dumpdata options in docs.
Backport of 1d975ff44b from master
2015-01-17 20:15:09 -05:00
Tim Graham a41d41046a [1.8.x] Added removal of check management command to deprecation timeline.
Backport of 20e4e8fc79 from master
2015-01-17 19:15:59 -05:00
Tim Graham 7cfcdd98dc [1.8.x] Added versionadded to ModelAdmin.get_formsets_with_inlines(); refs #20702. 2015-01-17 18:12:47 -05:00
Tim Graham a58a120021 [1.8.x] Standardized indentation in docs/howto/custom-management-commands.txt. 2015-01-17 13:27:59 -05:00
Tim Graham bfa3478850 [1.8.x] Replaced deprecated requires_model_validation in docs.
Backport of 18192b9fa4 from master
2015-01-17 12:52:30 -05:00
Tim Graham 9f86d86c62 [1.8.x] Updated tutorial 1 with actual migrate output. 2015-01-17 10:46:27 -05:00
Tim Graham b714316c06 [1.8.x] Documented django.utils.timezone.FixedOffset; thanks Aymeric.
Backport of 25264d4e2a from master
2015-01-17 09:31:56 -05:00
Tim Graham 8be1b8b488 [1.8.x] Bumped django_next_version in docs config. 2015-01-16 18:30:49 -05:00
Rick Hutcheson 801287bff2 [1.8.x] Fixed a typo in the test responses docs.
Backport of 996292d649 from master
2015-01-16 18:24:44 -05:00
Jannis Leidel a17724b791 Fixed the length of a headline in the 1.8 release notes.
This broke the website design in the sidebar because the line could not be wrapped.
2015-01-16 21:29:28 +01:00
Tim Graham 8e8daf7c9b Removed empty sections in 1.8 minor features. 2015-01-16 14:41:05 -05:00
Claude Paroz b4ac232907 Fixed #24099 -- Removed contenttype.name deprecated field
This finsishes the work started on #16803.
Thanks Simon Charette, Tim Graham and Collin Anderson for the
reviews.
2015-01-16 20:21:34 +01:00
Claude Paroz a79e6b6717 Fixed #24152 -- Deprecated GeoQuerySet aggregate methods
Thanks Josh Smeaton and Tim Graham for the reviews.
2015-01-16 19:53:02 +01:00
Keryn Knight 726a9550db Fixed #24143 -- Encouraged use of Http404 messages for debugging. 2015-01-16 09:41:01 -05:00
Tim Graham 28db4af80a Fixed #24135 -- Made RenameModel rename many-to-many tables.
Thanks Simon and Markus for reviews.
2015-01-15 20:34:33 -05:00
Michał Modzelewski 39b58ad95a Fixed #24148 -- Documented a bug with case expressions in SQLite < 3.7.0 2015-01-15 19:42:05 -05:00
Luke Plant 4832c004e8 Direct readers to format_html() in mark_safe() docs. 2015-01-15 08:24:54 +00:00
Tim Graham 28308078f3 Fixed #22603 -- Reorganized classes in django.db.backends. 2015-01-14 14:16:20 -05:00
Markus Holtermann 737d24923a Fixed #24075 -- Prevented running post_migrate signals when unapplying initial migrations of contenttypes and auth
Thanks Florian Apolloner for the report and Claude Paroz and Tim Graham for the review and help on the patch.
2015-01-14 19:59:39 +01:00
Tim Graham ec7ef5afbb Added stub release notes for 1.7.4. 2015-01-14 09:47:29 -05:00
Tim Graham 1913c1ac21 Added today's security issues to the archive. 2015-01-13 14:44:08 -05:00
Tim Graham 7ecd654497 Removed blank lines from docs/releases/security.txt 2015-01-13 14:37:30 -05:00
Tim Graham cbbe6a6abb Added dates to release notes. 2015-01-13 13:08:57 -05:00
Tim Graham baf2542c4f Fixed DoS possibility in ModelMultipleChoiceField.
This is a security fix. Disclosure following shortly.

Thanks Keryn Knight for the report and initial patch.
2015-01-13 13:03:06 -05:00
Tim Graham a3bebfdc34 Ensured views.static.serve() doesn't use large memory on large files.
This issue was fixed in master by refs #24072.
2015-01-13 13:03:06 -05:00
Tim Graham 69b5e66738 Fixed is_safe_url() to handle leading whitespace.
This is a security fix. Disclosure following shortly.
2015-01-13 13:03:06 -05:00
Carl Meyer 316b8d4974 Stripped headers containing underscores to prevent spoofing in WSGI environ.
This is a security fix. Disclosure following shortly.

Thanks to Jedediah Smith for the report.
2015-01-13 13:03:05 -05:00
Tim Graham 958aeda4b5 Added stub release notes for security releases. 2015-01-13 13:03:05 -05:00
Collin Anderson e7771ec380 Fixed bad model example in admin docs. 2015-01-13 11:53:03 -05:00
Michał Modzelewski 65246de7b1 Fixed #24031 -- Added CASE expressions to the ORM. 2015-01-12 18:15:34 -05:00
Tim Graham 5d7217dce3 Fixed typo in docs/release/1.8.txt & added word for spelling check. 2015-01-12 17:53:32 -05:00
Josh Smeaton 21b858cb67 Fixed #24060 -- Added OrderBy Expressions 2015-01-13 09:39:55 +11:00
Claude Paroz f48e2258a9 Fixed #24133 -- Replaced formatting syntax in success_url placeholders
Thanks Laurent Payot for the report, and Markus Holtermann, Tim Graham
for the reviews.
2015-01-12 22:51:22 +01:00
Aymeric Augustin 79deb6a071 Accounted for multiple template engines in template responses. 2015-01-12 21:01:34 +01:00
Aymeric Augustin a3e783fe11 Deprecated passing a Context to a generic Template.render.
A deprecation path is required because the return type of
django.template.loader.get_template changed during the
multiple template engines refactor.

test_csrf_token_in_404 was incorrect: it tested the case when the
hardcoded template was rendered, and that template doesn't depend on the
CSRF token. This commit makes it test the case when a custom template is
rendered.
2015-01-12 21:01:34 +01:00
Collin Anderson 26a92619f6 Fixed #24124 -- Changed context_processors in the default settings.py 2015-01-12 13:17:44 -05:00
Ng Zhi An 8f5d6c77b6 Fixed #23878 -- Moved Query and Prefetch documentation 2015-01-12 11:35:20 -05:00
Pavel Shpilev a7c256cb54 Fixed #9893 -- Allowed using a field's max_length in the Storage. 2015-01-12 09:09:18 -05:00
Marc Tamlyn b5c1a85b50 Fixed #24118 -- Added --debug-sql option for tests.
Added a --debug-sql option for tests and runtests.py which outputs the
SQL logger for failing tests. When combined with --verbosity=2, it also
outputs the SQL for passing tests.

Thanks to Berker, Tim, Markus, Shai, Josh and Anssi for review and
discussion.
2015-01-12 08:16:08 +00:00
Ola Sitarska d563e3be68 Fixed #23913 -- Deprecated the `=` comparison in `if` template tag. 2015-01-11 15:21:01 -05:00
Tim Graham 28de5cd4de Fixed spelling errors in docs. 2015-01-11 13:24:13 -05:00
Markus Holtermann be158e3625 Refs #24110 -- Added a more descriptive release note and fixed a spelling mistake. 2015-01-11 00:30:47 +01:00
Markus Holtermann fdc2cc9487 Fixed #24110 -- Rewrote migration unapply to preserve intermediate states 2015-01-10 23:14:15 +01:00
Aymeric Augustin d89019a84d Improved template ugrading docs.
Recommending Template(template_code) was dumb. Described alternatives.
2015-01-10 21:11:58 +01:00
Aymeric Augustin f01306a6d8 Updated templates API reference.
Accounted for multiple template engines and made a few small fixes.
2015-01-10 20:17:22 +01:00
Aymeric Augustin 4797af2bb8 Updated custom template tags how-to.
Accounted for multiple template engines and made a few small fixes.
2015-01-10 20:17:22 +01:00
Aymeric Augustin 3d495cfd77 Added release notes and upgrade instructions for templates. 2015-01-10 20:17:20 +01:00
Aymeric Augustin ee8d5b91e9 Wrote main documentation for templates. 2015-01-10 20:16:19 +01:00
Aymeric Augustin 6c392bb2c0 Moved doc on the DTL's syntax to the ref/ section.
This makes room for a more general introduction about templating.

Updated some links to point to the new location, but kept those that
didn't talk specifically about the DTL.
2015-01-10 19:41:14 +01:00
Simon Charette 07988744b3 Fixed #13165 -- Added edit and delete links to admin foreign key widgets.
Thanks to Collin Anderson for the review and suggestions and Tim for the
final review.
2015-01-10 12:24:52 -05:00
Marc Tamlyn 48ad288679 Fixed #24001 -- Added range fields for PostgreSQL.
Added support for PostgreSQL range types to contrib.postgres.

- 5 new model fields
- 4 new form fields
- New validators
- Uses psycopg2's range type implementation in python
2015-01-10 16:18:19 +00:00
Serafeim Papastefanos 74f02557e0 Fixed #23967 -- Added formats for Greek 2015-01-10 11:10:26 -05:00
Claude Paroz d7bc37d611 Fixed #24097 -- Prevented AttributeError in redirect_to_login
Thanks Peter Schmidt for the report and the initial patch.
Thanks to ​Oktay Sancak for writing the original failing test and
Alvin Savoy for supporting contributing back to the community.
2015-01-10 10:05:02 +01:00
Josh Smeaton f5c3a8bff5 Added Josh Smeaton bio to team 2015-01-10 13:48:37 +11:00
Markus Holtermann e174cce9dc Added my bio to the core team. 2015-01-10 00:53:09 +01:00
Tim Graham 7102b99653 Added best practices for versionadded/changed annotations. 2015-01-09 13:23:29 -05:00
Loic Bistuer 8f4877c89d Fixed #22583 -- Allowed RunPython and RunSQL to provide hints to the db router.
Thanks Markus Holtermann and Tim Graham for the review.
2015-01-10 00:30:48 +07:00
Markus Holtermann c8bac4b556 Fixed #24098 -- Added no-op attributes to RunPython and RunSQL
Thanks Loïc Bistuer and Tim Graham for the discussion and review.
2015-01-09 10:31:32 -05:00
Tim Graham 67d6a8c4e6 Fixed #24108 -- Updated Wilson's bio due to new Django Project Web site design. 2015-01-09 10:25:57 -05:00
Thomas Chaumeny 8fb7a0987c Fixed a typo in 1.8 release notes. 2015-01-09 07:38:11 -05:00
Sylvain Fankhauser c1493879d9 Fixed a typo in 1.8 release notes. 2015-01-08 16:02:18 -05:00
Tim Graham 13e4156518 Fixed a typo in 1.8 release notes. 2015-01-08 15:12:40 -05:00
Anssi Kääriäinen 0c7633178f Fixed #24020 -- Refactored SQL compiler to use expressions
Refactored compiler SELECT, GROUP BY and ORDER BY generation.
While there, also refactored select_related() implementation
(get_cached_row() and get_klass_info() are now gone!).

Made get_db_converters() method work on expressions instead of
internal_type. This allows the backend converters to target
specific expressions if need be.

Added query.context, this can be used to set per-query state.

Also changed the signature of database converters. They now accept
context as an argument.
2015-01-08 14:07:54 -05:00
Claude Paroz 543df07720 Fixed #24073 -- Returned None for get_language when translations are deactivated
This fixes a regression caused by f7c287fca9. Thanks Markus Holtermann
for identifying the regression.
2015-01-08 17:43:07 +01:00
Aymeric Augustin eaa1a22341 Added a request argument to render_to_string.
This is for consistency with Template.render.

It adds a little bit of knowledge about HTTP requests in
django.template.loader but I think consistency trumps purity.
2015-01-07 21:54:22 +01:00
Claude Paroz f7c287fca9 Fixed #24073 -- Deactivated translations when leave_locale_alone is False
Thanks Tim Graham and Markus Holtermann for the reviews.
2015-01-07 20:11:24 +01:00
Claude Paroz 2c0f64b5f6 Updated migration docs to match changes from a159b1fac 2015-01-07 20:10:30 +01:00
Josh Smeaton 5a4ac4ead9 Fixed #24078 -- Removed empty strings from GenericIPAddressField 2015-01-07 08:08:36 -05:00
Tim Graham 9b057b51ce Added 'loopback' to spelling word list. 2015-01-06 20:02:03 -05:00
Daniel Pyrathon fb48eb0581 Fixed #12663 -- Formalized the Model._meta API for retrieving fields.
Thanks to Russell Keith-Magee for mentoring this Google Summer of
Code 2014 project and everyone else who helped with the patch!
2015-01-06 19:25:12 -05:00
Danilo Bargen 2e65d56156 Fixed #20003 -- Improved and extended URLValidator
This adds support for authentication data (`user:password`) in URLs,
IPv6 addresses, and unicode domains.

The test suite has been improved by adding test URLs from
http://mathiasbynens.be/demo/url-regex (with a few adjustments,
like allowing local and reserved IPs).

The previous URL validation regex failed this test suite on 13
occasions, the validator was updated based on
https://gist.github.com/dperini/729294.
2015-01-06 14:04:25 -05:00
Tim Graham 6288fccfda Updated release instructions with latest process. 2015-01-06 13:51:19 -05:00
Claude Paroz e0080cf577 Fixed #24083 -- Corrected is_bound nature in forms topic docs
Thanks ajenhl Trac user for the report.
2015-01-06 08:56:53 +01:00
Claude Paroz 27dd7e7271 Fixed #23815 -- Prevented UnicodeDecodeError in CSRF middleware
Thanks codeitloadit for the report, living180 for investigations
and Tim Graham for the review.
2015-01-06 08:42:58 +01:00
Preston Timmons de9ebdd39c Fixed #24022 -- Deprecated the ssi tag. 2015-01-05 19:35:02 -05:00
Tim Graham ce17b045bf Added 1.4.18 release notes. 2015-01-05 14:24:34 -05:00
Tim Graham c87ee41954 Fixed #23861 -- Added an API to deprecate model fields.
Thanks Markus Holterman and Berker Peksag for review.
2015-01-05 11:35:36 -05:00
Claude Paroz 6e1c9c6568 Fixed #8280 -- Allowed management command discovery for eggs
Thanks jdetaeye for the report, bhuztez and jdetaeye for the
initial patches, Tim Graham and Berker Peksag for the reviews.
2015-01-05 17:19:35 +01:00
Tim Graham d94fe42ae5 Forwardported release note for 4aed731154. 2015-01-05 10:55:48 -05:00
Collin Anderson 3d2cae0896 Fixed #24072 -- Added FileResponse for streaming binary files. 2015-01-05 10:51:52 -05:00
Tim Graham 572ad9a92e Added release note for PBKDF2 iteration count increase.
refs 6732566967
2015-01-03 13:43:13 -05:00
Tim Graham 439f15beab Added 1.7.3 release notes stub. 2015-01-03 13:27:08 -05:00
Alfred Perlstein db3f7c15cb Fixed #23749 -- Documented how to use the database alias in RunPython.
Thanks Markus Holtermann for review and feedback.
2015-01-03 12:06:40 -05:00
Bibhas b738178825 Fixed #24070 -- Added tutorial topics to doc index. 2015-01-03 08:48:31 -05:00
Tim Graham 15cd71ed24 Added dates to release notes. 2015-01-02 19:20:18 -05:00
Tim Graham 52f0b2b622 Updated six to 1.9.0. 2015-01-02 12:35:41 -05:00
Andriy Sokolovskiy 23f1a8dad2 Added return value to Signal.disconnect(). 2015-01-02 12:00:41 -05:00
Daniel Pyrathon 8958170755 Fixed #9104 -- Moved FieldDoesNotExist to core.exceptions 2015-01-02 10:46:04 -05:00
Tim Graham f60c35cddc Removed release note for refs #23891 as the backport proved too difficult. 2015-01-01 13:59:38 -05:00
Tim Graham 40a8504357 Fixed #23891 -- Moved deprecation of IPAddressField to system check framework.
Thanks Markus Holtermann for review.
2015-01-01 13:30:52 -05:00
Tim Graham a7aaabfaf1 Removed doc note about PasswordResetForm requiring an integer PK.
This limitation was lifted in refs #14881.
2015-01-01 11:38:53 -05:00
Tim Graham e80f59e3bb Added showmigrations to spelling wordlist. 2015-01-01 09:18:57 -05:00
Tim Graham c4e796aa1b Fixed typo in docs/ref/contrib/admin/index.txt. 2015-01-01 08:18:39 -05:00
Tim Graham b4bdd5262b Fixed #23366 -- Fixed a crash with the migrate --list command. 2014-12-31 17:26:15 -05:00
Thomas Tanner 46068d850d Fixed #22295 -- Replaced permission check for displaying admin user-tools 2014-12-31 16:31:59 -05:00
Andrey Maslov 7a878ca5cb Fixed #24008 -- Fixed ValidationError crash with list of dicts. 2014-12-31 14:43:13 -05:00
Markus Holtermann a1487deebf Fixed #23359 -- Added showmigrations command to list migrations and plan.
Thanks to Collin Anderson, Tim Graham, Gabe Jackson, and Marc Tamlyn
for their input, ideas, and review.
2014-12-31 14:14:28 -05:00
Tim Graham 09bce0b2cb Fixed #22340 -- Removed DatabaseCreation deprecation from timeline. 2014-12-31 09:37:13 -05:00
Piotr Pawlaczek 41fc1c0b5e Fixed #23758 -- Allowed more than 5 levels of subqueries
Refactored bump_prefix() to avoid infinite loop and allow more than
than 5 subquires by extending the alphabet to use multi-letters.
2014-12-31 08:48:28 -05:00
Tim Graham 93d73dac91 Moved DatabaseCreation.data_types properties to DatabaseWrapper.
refs #22340.
2014-12-31 08:29:17 -05:00
Claude Paroz 66f9a74b45 Added ignore_warnings decorator
And removed Ignore*DeprecationWarningsMixin, now obsolete.
Thanks Berker Peksag and Tim Graham for the review.
2014-12-30 18:16:25 +01:00
Tim Graham d7fc6eb8ca Revert "Updated some docs for the delayed deprecation of legacy table creation; refs #22340."
This reverts commit a2e3c96948.

The deprecation was moved back to 1.9 in
61da5f3f02.
2014-12-30 11:50:50 -05:00
Andriy Sokolovskiy 8c99b7920e Fixed #12118 -- Added shared cache support to SQLite in-memory testing. 2014-12-30 10:14:33 -05:00
Tim Graham ab4f709da4 Fixed #23581 -- Prevented extraneous DROP DEFAULT statements.
Thanks john_scott for the report and Markus Holtermann for review.
2014-12-30 07:54:05 -05:00
Tim Graham 2d63889365 Removed release note for refs #23938 as it couldn't be backported to 1.7. 2014-12-29 15:38:16 -05:00
Markus Holtermann 623ccdd598 Fixed #23938 -- Added migration support for m2m to concrete fields and vice versa
Thanks to Michael D. Hoyle for the report and Tim Graham for the review.
2014-12-29 13:41:12 -05:00
Claude Paroz 1d24f073e6 Fixed #21255 -- Closed connections after management command ran
Thanks kabakov.as@gmail.com for the report, and Aymeric Augustin,
Simon Charette for the reviews.
2014-12-29 19:02:45 +01:00
Florian Apolloner 1ee9507eb3 Fixed a vesionadded directive. 2014-12-29 10:22:19 +01:00
Aymeric Augustin 9eb4f28e89 Deprecated TEMPLATE_CONTEXT_PROCESSORS. 2014-12-28 17:02:31 +01:00
Aymeric Augustin d3205e3e2e Deprecated TEMPLATE_DIRS. 2014-12-28 17:02:30 +01:00
Aymeric Augustin cf0fd65ed4 Deprecated TEMPLATE_LOADERS. 2014-12-28 17:02:30 +01:00
Aymeric Augustin d3a982556d Deprecated TEMPLATE_STRING_IF_INVALID. 2014-12-28 17:02:30 +01:00
Aymeric Augustin 3dc01aaaaf Deprecated ALLOWED_INCLUDE_ROOTS. 2014-12-28 17:02:30 +01:00
Aymeric Augustin cf1f36bb6e Deprecated current_app in TemplateResponse and render(_to_response). 2014-12-28 17:02:29 +01:00
Aymeric Augustin fdbfc98003 Deprecated some arguments of django.shortcuts.render(_to_response).
dictionary and context_instance and superseded by context.

Refactored tests that relied context_instance with more modern idioms.
2014-12-28 17:02:29 +01:00
Aymeric Augustin 92e8f1f302 Moved context_processors from django.core to django.template. 2014-12-28 17:00:07 +01:00
Aymeric Augustin 90805b240f Supported multiple template engines in render_to_string.
Adjusted its API through a deprecation path according to the DEP.
2014-12-28 16:23:02 +01:00
Aymeric Augustin f50a09f2cd Removed private API get_template_from_string.
It wasn't documented and it wasn't used anywhere.
2014-12-28 16:23:01 +01:00
Aymeric Augustin 5523e4cdbb Removed private API find_template.
It wasn't documented and it wasn't used anywhere, except in a few tests
that don't test it specifically and can be rewritten with get_template.
2014-12-28 16:23:01 +01:00
Aymeric Augustin 1acfd624d6 Added initial support for loading template engines. 2014-12-28 16:08:31 +01:00
Aymeric Augustin 7eefdbf7ab Cleaned up the django.template namespace.
Since this package is going to hold both the implementation of the Django
Template Language and the infrastructure for Multiple Template Engines,
it should be untied from the DTL as much as possible within our
backwards-compatibility policy.

Only public APIs (i.e. APIs mentioned in the documentation) were left.
2014-12-28 14:47:31 +01:00
Tim Graham 3d0c3a0482 Fixed #24056 -- Fixed syntax highlighting in topics/testing/tools.txt. 2014-12-27 19:49:16 -05:00
Christopher Grebs 508be27dbf Fixed #24057 -- Fixed typo in docs/howto/custom-lookups.txt. 2014-12-27 19:38:24 -05:00
Aymeric Augustin 7fd5629d23 Added release notes for the last two commits. 2014-12-27 18:26:48 +01:00
Tim Graham 89e2c60f43 Fixed #24000 -- Corrected contrib.sites default site creation in a multiple database setup. 2014-12-27 09:42:13 -05:00
Claude Paroz e112bacd21 Forward-ported release note for 322560489 2014-12-27 15:13:12 +01:00
Claude Paroz 2ceb10f3b0 Fixed #14180 -- Prevented unneeded index creation on MySQL-InnoDB
Thanks zimnyx for the report and Simon Charette, Tim Graham for
the reviews.
2014-12-27 12:52:44 +01:00
Josh Smeaton 4718296546 Fixed #23753 -- Added a suite of SQL Functions
Added functions and tests
Added docs and more tests
Added TextField converter to mysql backend
Aliased Value as V in example docs and tests
Removed unicode_compatible in example
Fixed console emulation in examples
2014-12-27 15:27:27 +11:00
Collin Anderson 0821b3d53c Clarified custom header instructions in tutorial 2. 2014-12-26 18:28:47 -05:00
Tim Graham c2e419c267 Fixed #24054 -- Enabled sqlsequencereset for apps with migrations. 2014-12-26 15:55:34 -05:00
Tim Graham 1729a5250b Removed obsolete item from deprecation timeline.
Initial SQL data will be removed in Django 1.9 so changes to it
aren't relevant.
2014-12-26 13:48:13 -05:00
Tim Graham c5fb34c47e Documented AdminSite.has_permission(); refs #22295. 2014-12-26 09:14:10 -05:00
Brian Scoles a6f0b6a98f Fixed typo in docs/intro/tutorial01.txt. 2014-12-25 06:56:23 -05:00
Tim Graham 6571ed14b6 Fixed #24049 -- Removed obsolete Java notes for Mac OS. 2014-12-24 18:38:07 -05:00
Helen Sherwood-Taylor 4ccdf6e57f Fixed #24041 -- Documented effect of changing a model instance's primary key. 2014-12-24 15:06:09 -05:00
Niclas Olofsson 3daa9d60be Fixed #10414 -- Made select_related() fail on invalid field names. 2014-12-24 14:54:30 -05:00
Thomas Tanner b27db97b23 Fixed #22461 -- Added if-unmodified-since support to the condition decorator. 2014-12-24 12:33:57 -05:00
Collin Anderson 5dddd79433 Fixed #20349 -- Moved setting_changed signal to django.core.signals.
This removes the need to load django.test when not testing.
2014-12-24 07:18:43 -05:00
Tim Graham 8842bc101c Fixed some docs spelling mistakes. 2014-12-23 14:41:53 -05:00
Frankie Robertson 446b50b90e Fixed #24035 -- Clarified docs on CACHE_MIDDLEWARE_KEY_PREFIX vs KEY_PREFIX 2014-12-23 14:35:30 -05:00
Tim Graham 061caa5b38 Fixed #24037 -- Prevented data loss possibility when changing Meta.managed.
The migrations autodetector now issues AlterModelOptions operations for
Meta.managed changes instead of DeleteModel + CreateModel.

Thanks iambibhas for the report and Simon and Markus for review.
2014-12-23 14:25:31 -05:00
Anssi Kääriäinen f233bf47dd Fixed #21414 -- Removed RelatedObject and deprecated Field.related. 2014-12-23 10:54:25 -05:00
Claude Paroz 6e08bde8c4 Added RasterSource/GDALBand GDAL objects
Based on Daniel Wiesmann's raster branch. Thanks Daniel Wiesmann
and Tim Graham for the reviews. Refs #23804.
2014-12-23 16:36:18 +01:00
Marc Tamlyn 5ca82e710e Fixed #24033 -- Use interval type on Oracle.
Use INTERVAL DAY(9) TO SECOND(6) for Durationfield on Oracle rather than
storing as a NUMBER(19) of microseconds.

There are issues with cx_Oracle which require some extra data
manipulation in the database backend when constructing queries, but it
handles the conversion back to timedelta objects cleanly.

Thanks to Shai for the review.
2014-12-23 10:38:32 +00:00
Collin Anderson a58cfe8e71 Upgrade jQuery from 1.11.1 to 1.11.2
refs #23355
2014-12-22 20:32:00 -05:00
Tim Graham 01ab84c613 Fixed #23525 -- Fixed admindocs crash on apps installed as eggs.
Thanks welbornprod for report and initial patch.
2014-12-22 15:19:18 -05:00
Alexander Schulze cf2390be16 Fixed #23959 -- Clarified when checks automatically run. 2014-12-22 11:35:19 -05:00
Oscar Ramirez 54085b0f9b Fixed #23998 -- Added datetime.time support to migrations questioner. 2014-12-22 07:24:54 -05:00
David Cramer 27f68f8659 Correct scoping of savepoint example 2014-12-20 12:02:26 -08:00
Marc Tamlyn 57554442fe Fixed #2443 -- Added DurationField.
A field for storing periods of time - modeled in Python by timedelta. It
is stored in the native interval data type on PostgreSQL and as a bigint
of microseconds on other backends.

Also includes significant changes to the internals of time related maths
in expressions, including the removal of DateModifierNode.

Thanks to Tim and Josh in particular for reviews.
2014-12-20 18:28:29 +00:00
Tim Graham a3d96bee36 Added upgrade instructions for deprecated model _meta permission methods. 2014-12-19 19:11:52 -05:00
Tim Graham f56132691b Added words to docs wordlist. 2014-12-19 14:37:06 -05:00
Claude Paroz 337cd09836 Updated some other external links in the docs 2014-12-19 18:07:52 +01:00
Claude Paroz 0a4b04fc23 Used https for most *.python.org links 2014-12-19 18:07:52 +01:00
Claude Paroz 742fba9455 Used the 🎫 syntax more extensively 2014-12-19 18:07:52 +01:00
Berker Peksag 6403e07c50 Moved version directives to the bottom of the loaddata section. 2014-12-19 06:52:01 +02:00
Claude Paroz 5b1fb0a75d Forward-ported test and release note from f46a16614
Refs #24015.
2014-12-18 21:17:17 +01:00
Tim Graham 0c06f06131 Removed need to update Python version support note on each new release. 2014-12-18 11:55:33 -05:00
Claude Paroz 9c1f501d7b Fixed #24014 -- Unified OGRException and GDALException
Thanks Tim Graham for the review.
2014-12-18 11:28:17 +01:00
Tim Graham 493ab45349 Updated TemplateResponseMixin docs to reflect new behavior after refs #23789. 2014-12-17 20:02:15 -05:00
Claude Paroz 108b8bf852 Fixed #24007 -- Ensure apps registry's ready before unpickling models
This prevents AppRegistryNotReady errors when unpickling Django
models from an external script.
2014-12-17 18:33:32 +01:00
Mosson, Andrew b7219c7ba5 Fixed #23497 -- Made admin system checks run for custom AdminSites. 2014-12-17 09:11:46 -05:00
Markus Holtermann c7786550c4 Fixed display of lists after website redesign
Thanks Brian Jacobel for the report. refs django/djangoproject.com#197
2014-12-17 08:24:00 -05:00
Alex Gaynor 104aaab704 Fixed the formatting of one section of the security page 2014-12-16 19:00:42 -05:00
Tim Graham d2ff8a7241 Fixed #23975 -- Restored pre_migrate signal if all apps have migrations.
Thanks kmmbvnr for the report.
2014-12-16 18:34:25 -05:00
Andriy Sokolovskiy 3dbbb8a89c Fixed #23983 -- Fixed a crash in migrations when adding order_with_respect_to to non-empty table. 2014-12-16 10:48:49 -05:00
Andriy Sokolovskiy d8f3b86a76 Fixed #23405 -- Fixed makemigrations prompt when adding Text/CharField.
A default is no longer required.
2014-12-15 14:41:52 -05:00
Tim Graham d39461eb46 Fixed typos in docs/releases/1.7.2.txt. 2014-12-15 13:42:52 -05:00
Andriy Sokolovskiy 089047331d Fixed #23987 -- Made SQLite SchemaEditor always use effective_default(). 2014-12-15 13:40:24 -05:00