Update README.rst
This commit is contained in:
parent
2aa52b16bb
commit
f364cd3c12
1 changed files with 9 additions and 5 deletions
14
README.rst
14
README.rst
|
@ -352,11 +352,15 @@ Global Settings
|
|||
* BLOG_DEFAULT_PUBLISHED: If posts are marked as published by default;
|
||||
(default: ``False``)
|
||||
* BLOG_ADMIN_POST_FIELDSET_FILTER: Callable function to change(add or filter)
|
||||
fields to fieldsets for admin post edit form; (default: ``False``). Function simple example:
|
||||
def fieldset_filter_function(fsets, request, obj=None):
|
||||
if request.user.groups.filter(name='Editor').exists():
|
||||
fsets[1][1]['fields'][0].append('author') # adding 'author' field if user is Editor
|
||||
return fsets
|
||||
fields to fieldsets for admin post edit form; (default: ``False``). Function simple example::
|
||||
|
||||
|
||||
def fieldset_filter_function(fsets, request, obj=None):
|
||||
if request.user.groups.filter(name='Editor').exists():
|
||||
fsets[1][1]['fields'][0].append('author') # adding 'author' field if user is Editor
|
||||
return fsets
|
||||
|
||||
|
||||
* BLOG_AVAILABLE_PERMALINK_STYLES: Choices of permalinks styles;
|
||||
* BLOG_PERMALINK_URLS: URLConf corresponding to
|
||||
BLOG_AVAILABLE_PERMALINK_STYLES;
|
||||
|
|
Loading…
Add table
Reference in a new issue