Code

Ticket #16371: css_prefix_docs.diff

File css_prefix_docs.diff, 815 bytes (added by silent1mezzo, 3 years ago)

Docs for patch.

Line 
1Index: docs/ref/contrib/admin/index.txt
2===================================================================
3--- docs/ref/contrib/admin/index.txt    (revision 16736)
4+++ docs/ref/contrib/admin/index.txt    (working copy)
5@@ -901,6 +901,14 @@
6         Performs a full-text match. This is like the default search method but
7         uses an index. Currently this is only available for MySQL.
8 
9+.. attribute:: ModelAdmin.css_prefix
10+
11+    Set ``css_prefix`` to specify the css prefix you would like to use to prefix the class of the <div> surrounding each field.
12+
13+    By default, the fields name is used as the class name. If you have css that is conflicting with the field name, setting ``css_prefix`` will fix that.
14+
15+    By default, ``css_prefix`` is set to None.
16+
17 Custom template options
18 ~~~~~~~~~~~~~~~~~~~~~~~
19