From 30ea350dabad28b0e524feabce434d446e013d6f Mon Sep 17 00:00:00 2001 From: Honza Král Date: Sat, 7 Nov 2009 17:09:09 +0000 Subject: [soc2009/model-validation] Merged to trunk at r11724 git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11725 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/ref/contrib/admin/index.txt | 70 ++++- docs/ref/contrib/comments/index.txt | 7 + docs/ref/contrib/csrf.txt | 448 ++++++++++++++++++++++++----- docs/ref/contrib/formtools/form-wizard.txt | 2 +- docs/ref/middleware.txt | 4 +- docs/ref/models/querysets.txt | 11 + docs/ref/settings.txt | 69 +++++ docs/ref/templates/api.txt | 15 + docs/ref/templates/builtins.txt | 10 + 9 files changed, 551 insertions(+), 85 deletions(-) (limited to 'docs/ref') diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index c1e05eda1d..0f746bf01b 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -770,7 +770,7 @@ documented in :ref:`topics-http-urls`:: However, the ``self.my_view`` function registered above suffers from two problems: - * It will *not* perform and permission checks, so it will be accessible to + * It will *not* perform any permission checks, so it will be accessible to the general public. * It will *not* provide any header details to prevent caching. This means if the page retrieves data from the database, and caching middleware is @@ -1048,16 +1048,70 @@ automatically:: FriendshipInline, ] +Working with Many-to-Many Models +-------------------------------- + +.. versionadded:: 1.2 + +By default, admin widgets for many-to-many relations will be displayed +on whichever model contains the actual reference to the ``ManyToManyField``. +Depending on your ``ModelAdmin`` definition, each many-to-many field in your +model will be represented by a standard HTML ``