summaryrefslogtreecommitdiff
path: root/docs/ref
AgeCommit message (Collapse)Author
2013-11-27Added a warning regarding risks in serving user uploaded media.Tim Graham
Thanks Preston Holmes for the draft text.
2013-11-27Added a bulk option to RelatedManager remove() and clear() methodsLoic Bistuer
Refs #21169
2013-11-27Fixed #21169 -- Reworked RelatedManager methods use default filteringLoic Bistuer
The `remove()` and `clear()` methods of the related managers created by `ForeignKey`, `GenericForeignKey`, and `ManyToManyField` suffered from a number of issues. Some operations ran multiple data modifying queries without wrapping them in a transaction, and some operations didn't respect default filtering when it was present (i.e. when the default manager on the related model implemented a custom `get_queryset()`). Fixing the issues introduced some backward incompatible changes: - The implementation of `remove()` for `ForeignKey` related managers changed from a series of `Model.save()` calls to a single `QuerySet.update()` call. The change means that `pre_save` and `post_save` signals aren't called anymore. - The `remove()` and `clear()` methods for `GenericForeignKey` related managers now perform bulk delete so `Model.delete()` isn't called anymore. - The `remove()` and `clear()` methods for `ManyToManyField` related managers perform nested queries when filtering is involved, which may or may not be an issue depending on the database and the data itself. Refs. #3871, #21174. Thanks Anssi Kääriäinen and Tim Graham for the reviews.
2013-11-26Fixed a typo in the documentationAlex Gaynor
2013-11-25Fixed #20522 - Allowed use of partially validated object in ↵Jay Leadbetter
ModelAdmin.add_view formset validation. Updated ModelAdmin to use form.instance when passing parent model to child inlines for add_view. There is effectively no change in the change_view since the previously passed 'obj' is the same as form.instance. Thanks to meshy for report, and EvilDMP and timo for review.
2013-11-25Fixed #21507 -- Corrected default widget information for FileFieldLudwik Trammer
2013-11-24Fixed #21391 -- Allow model signals to lazily reference their senders.Simon Charette
2013-11-24Fixed typo in previous commit; refs #21490.Tim Graham
2013-11-24Fixed #21490 -- Fixed custom admin URL reverse example.Tim Graham
Thanks glarrain for the report.
2013-11-24Removed confusing comments from the docs.Loic Bistuer
The settings reference documentation doesn't seem the right place to invite users to write their own db and cache backends. Also the actual wording makes the task sound trivial, which is hardly the case; writing a custom db backend is a very difficult task, and writing a custom cache backend is full of gotcha.
2013-11-23Add missing commas in Prefetch docsThomas Orozco
2013-11-23Fixed #21488 -- Multiple locales treatment in i18n commands.Ramiro Morales
Removed multiple locales separated by commas variation (that wasn't working as documented) in favor of simply allowing use of the ``--locale``/``-l`` options more than once for ``makemessages`` and ``compilemessages``. Thanks Romain Beylerian for the report and Claude, Simon for their help. 8750296918072c97a51f6809d19828ce3f1b8d40 from stable/1.6.x.
2013-11-23Fixed #21491 -- Removed documented workaround for a known issue.Loic Bistuer
The issue was that two M2M hidden reverse managers (related_name ending with a '+') could clash with each other. Refs #21375 and #15932. Thanks Baptiste.
2013-11-21Fixed #21479 -- Favor 'migrate' over 'syncdb' in the docs.Loic Bistuer
2013-11-21Fixed #21427 -- Clearly state integer field value ranges in docsMarkus Amalthea Magnuson
Added an explicit mention of the exact value ranges for integer type fields that are safe in all databases supported by Django. Also, put all value numbers inside double ticks.
2013-11-19fixed typo in builtins.txtJulia Antokhine
2013-11-19Fixed the base class note in the Date Views docs.Rocky Meza
2013-11-18Added more internal links in the management command documentation.Baptiste Mispelon
2013-11-18Fixed #21397 -- Re-added flexibility to TypedChoiceField coercionClaude Paroz
Thanks Elec for the report and Simon Charette for the review.
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.