Code

Ticket #19315: faq_admin.txt.diff

File faq_admin.txt.diff, 2.4 KB (added by ClaesBas, 20 months ago)
Line 
1diff --git a/docs/faq/admin.txt b/docs/faq/admin.txt
2index 872ad25..0e3913d 100644
3--- a/docs/faq/admin.txt
4+++ b/docs/faq/admin.txt
5@@ -11,7 +11,7 @@ things:
6 * Set the :setting:`SESSION_COOKIE_DOMAIN` setting in your admin config
7   file to match your domain. For example, if you're going to
8   "http://www.example.com/admin/" in your browser, in
9-  "myproject.settings" you should set ``SESSION_COOKIE_DOMAIN = 'www.example.com'``.
10+  "myproject.settings" you should set :setting:`SESSION_COOKIE_DOMAIN` = 'www.example.com'.
11 
12 * Some browsers (Firefox?) don't like to accept cookies from domains that
13   don't have dots in them. If you're running the admin site on "localhost"
14@@ -23,7 +23,7 @@ I can't log in. When I enter a valid username and password, it brings up the log
15 -----------------------------------------------------------------------------------------------------------------------------------------------------------
16 
17 If you're sure your username and password are correct, make sure your user
18-account has ``is_active`` and ``is_staff`` set to True. The admin site only
19+account has :attr:`~django.contrib.auth.models.User.is_active` and :attr:`~django.contrib.auth.models.User.is_staff` set to True. The admin site only
20 allows access to users with those two fields both set to True.
21 
22 How can I prevent the cache middleware from caching the admin site?
23@@ -64,7 +64,7 @@ My "list_filter" contains a ManyToManyField, but the filter doesn't display.
24 Django won't bother displaying the filter for a ``ManyToManyField`` if there
25 are fewer than two related objects.
26 
27-For example, if your ``list_filter`` includes ``sites``, and there's only one
28+For example, if your :attr:`~django.contrib.admin.ModelAdmin.list_filter` includes :doc:`sites </ref/contrib/sites>`, and there's only one
29 site in your database, it won't display a "Site" filter. In that case,
30 filtering by site would be meaningless.
31 
32@@ -85,7 +85,7 @@ How can I customize the functionality of the admin interface?
33 
34 You've got several options. If you want to piggyback on top of an add/change
35 form that Django automatically generates, you can attach arbitrary JavaScript
36-modules to the page via the model's ``class Admin`` ``js`` parameter. That
37+modules to the page via the model's :ref:`class Admin js<modeladmin-media-definitions>` parameter. That
38 parameter is a list of URLs, as strings, pointing to JavaScript modules that
39 will be included within the admin form via a ``<script>`` tag.
40