summaryrefslogtreecommitdiff
path: root/docs/ref
AgeCommit message (Collapse)Author
2013-11-15Clarified MySQL Connector note.DanSears
2013-11-12Fixed typos in previous commit (9aa6d4bdb6618ba4f17acc7b7c0d1462d6cbc718).Baptiste Mispelon
2013-11-12Removed a mention of `Form._errors` from the documentation.Baptiste Mispelon
Also removed a sentence that was incorrect: raising a `ValidationError` inside `Form.clean` doesn't clear the `cleaned_data` attribute. Thanks to loic84 and timograham for the review.
2013-11-11Fixed #21421 -- Added level_tag attribute on messages.Sjoerd Langkemper
Exposing the level name (e.g. "info") makes it possible to prepend something to the class name. For example, Twitter Bootstrap has an alert-info class. This class can now be added to the message using `class="alert-{{ message.level_tag }}". Because the level_tag was on the end of the `tags` property, it could not be used in this fashion when extra_tags were given.
2013-11-10added description of MySQL Connector/PythonDanSears
Reorganized the MySQLdb section into a "MySQL DB API Drivers" section that describes both MySQLdb and MySQL Connector/Python. Included description of the Django adaptors for these DB API drivers.
2013-11-09Fixed #21372 -- Corrected docs regarding translating LANGUAGES.Bernardo Pires
Corrected LANGUAGES documentation on how to translate language names. Now using django.utils.translation.ugettext_lazy instead of a dummy gettext() function. Thanks to Salvatore for the report.
2013-11-09Fixed spelling of compatibility.Tim Graham
2013-11-09Fixed versionadded misuse in the admin documentation.Baptiste Mispelon
2013-11-08Added missing parameter in npgettext_lazy docsglts
2013-11-08Fixed #21396: Document backwards-incompatible change in ↵Baptiste Mispelon
RedirectView.get_redirect_url. Thanks to Tim for the review.
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-06Fixed typos in documentation.Baptiste Mispelon
2013-11-06Fixed another typo introduced by b914991b3705cb6c91013d962c55cda9deb18d83.Baptiste Mispelon
Thanks Claude for catching it.
2013-11-05Fixed a documentation typo introduced by b914991b37.Simon Charette
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-02Django should be capitalized in textBouke Haarsma
2013-11-02Merge pull request #1799 from Bouke/tickets/9523Aymeric Augustin
Fixed #9523 -- Restart runserver after translation MO files change
2013-11-02Fixed #21354 -- Documented contrib.redirects defaults to 301 redirectsBouke Haarsma
Thanks glarrain for the suggestion.
2013-11-02Fixed #9523 -- Restart runserver after translation MO files changeBouke Haarsma
Thanks to Krzysztof Kulewski for the initial patch.
2013-11-01Fixed spelling ("dependant" -> "dependent")Tim Graham
Dependent means reliant on. A dependant is a person like a child or spouse. Thanks Andrew Wilcox for the report.
2013-11-01Fixed #21364 -- Specified InnoDB full-text support from MySQL 5.6.4 onClaude Paroz
Thanks thevlad at gmail.com for the report.
2013-11-01Fixed #21359 -- Corrected MySQL collation name in databases docsClaude Paroz
Thanks k_sze for the report.
2013-10-30Fixed #9722 - used pyinotify as change detection system when availableUnai Zalakain
Used pyinotify (when available) to replace the "pool-every-one-second" mechanism in `django.utils.autoreload`. Thanks Chris Lamb and Pascal Hartig for work on the patch.
2013-10-30Fixed #21306 -- Documented lower-casing behavior of title filter.Tim Graham
2013-10-30Fixed #20610: Added a message level dict to contrib.message context processor.Baptiste Mispelon
2013-10-30Fixed #21316 -- Documented that modifying safe strings makes them unsafe.Tim Graham
Thanks dev@simon.net.nz for the suggestion and vijay_shanker for the patch.
2013-10-29Fixed #8261 -- ModelAdmin hook for customising the "show on site" buttonUnai Zalakain
``ModelAdmin.view_on_site`` defines wether to show a link to the object on the admin detail page. If ``True``, cleverness (i.e. ``Model.get_absolute_url``) is used to get the url. If it's a callable, the callable is called with the object as the only parameter. If ``False``, not link is displayed. With the aim of maitaining backwards compatibility, ``True`` is the default.
2013-10-29Mark this as a python code-blockAlex Gaynor
2013-10-28Fixed #21344 -- Typo in docs/ref/models/queries.txtTim Graham
2013-10-24Fixed #21219 -- Added a way to set different permission for static files.Vajrasky Kok
Previously, when collecting static files, the files would receive permission from FILE_UPLOAD_PERMISSIONS. Now, there's an option to give different permission from uploaded files permission by subclassing any of the static files storage classes and setting the file_permissions_mode parameter. Thanks dblack at atlassian.com for the suggestion.
2013-10-24Fixed #20338 -- Stripped ending dot during host validationClaude Paroz
Thanks manfre for the report and Timo Graham for the review.
2013-10-23Fixed #13245: Explained Oracle's behavior w.r.t db_tableShai Berger
and how to prevent table-name truncation Thanks russellm & timo for discussion, and timo for review.
2013-10-22Fixed #17027 -- Added support for the power operator in F expressions.Florian Hahn
Thanks dan at dlo.me for the initial patch. - Added __pow__ and __rpow__ to ExpressionNode - Added oracle and mysql specific power expressions - Added used-defined power function for sqlite
2013-10-21Fixed #21296 -- Added docs for PostgreSQL and unix domains sockets.Riccardo Magliocchetti
2013-10-18Fixed #21212 -- Documented the reverse name for OneToOneField.Juergen Schackmann
Thanks bjb at credil.org for the report.
2013-10-17Fixed #18659 -- Deprecated request.REQUEST and MergeDictBouke Haarsma
Thanks Aymeric Augustin for the suggestion.
2013-10-15Fixed #16855 -- select_related() chains as expected.Marc Tamlyn
select_related('foo').select_related('bar') is now equivalent to select_related('foo', 'bar'). Also reworded docs to recommend select_related(*fields) over select_related()
2013-10-15Fixed #7603 -- Added a 'scheme' property to the HttpRequest objectUnai Zalakain
`HttpRequest.scheme` is `https` if `settings.SECURE_PROXY_SSL_HEADER` is appropriately set and falls back to `HttpRequest._get_scheme()` (a hook for subclasses to implement) otherwise. `WSGIRequest._get_scheme()` makes use of the `wsgi.url_scheme` WSGI environ variable to determine the request scheme. `HttpRequest.is_secure()` simply checks if `HttpRequest.scheme` is `https`. This provides a way to check the current scheme in templates, for example. It also allows us to deal with other schemes. Thanks nslater for the suggestion.
2013-10-14Fixed #8620 -- Updated the Form metaclass to support excluding fields by ↵Loic Bistuer
shadowing them.
2013-10-14Fixed #21210 -- Documented when runserver doesn't auto-restart.Bouke Haarsma
Thanks gergely at polonkai.eu for the suggestion.
2013-10-14Fixed #15888 -- Made tablename argument of createcachetable optionalClaude Paroz
Thanks Aymeric Augustin for the report and the documentation and Tim Graham for the review.
2013-10-12Forms docs: More emphasis in 'id' value customizability.Ramiro Morales
2013-10-11Fixed #13252 -- Added ability to serialize with natural primary keys.Tai Lee
Added ``--natural-foreign`` and ``--natural-primary`` options and deprecated the ``--natural`` option to the ``dumpdata`` management command. Added ``use_natural_foreign_keys`` and ``use_natural_primary_keys`` arguments and deprecated the ``use_natural_keys`` argument to ``django.core.serializers.Serializer.serialize()``. Thanks SmileyChris for the suggestion.
2013-10-11Fixed #8918 -- Made FileField.upload_to optional.Tim Graham
Thanks leahculver for the suggestion and dc and vajrasky for work on the patch.
2013-10-10Whitespace cleanup.Tim Graham
* Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
2013-10-04Fixed #21213 -- Added docs for Django's mailing lists.Unai Zalakain
Added docs/internals/mailing-lists.txt documenting the use of django's mailing lists. All references across docs changed to point to this page. The referencing makes use of substitution because there's no way to make a :ref: link in a non-inline fashion in Sphinx. It also makes use of rst_epilog Sphinx conf for making this substitutions across all the docs.
2013-10-04Fixed #19321 -- Allowed redirect middleware HTTP responses to be overridden.Ryan Kaskel
Thanks Melevir for the suggestion.
2013-10-03Fixed #19277 -- Added LocaleMiddleware.response_redirect_classEmil Stenström
Thanks ppetrid at yawd.eu for the suggestion.
2013-10-02Fixed #10913 -- Documented how related_name affects QuerySet filteringTim Graham
Thanks neithere for the suggestion.
2013-10-02Changed the doc to use gender-neutral pronouns when possible.Baptiste Mispelon