Added 'How do I automatically set a field's value to the user who last edited the object in the admin?' and 'How do I limit admin access so that objects can only be edited by the users who created them?' to the FAQ
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2120 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
7ce571ef01
commit
14ea5bfef5
13
docs/faq.txt
13
docs/faq.txt
|
@ -406,6 +406,19 @@ If you're sure your username and password are correct, make sure your user
|
|||
account has ``is_active`` and ``is_staff`` set to True. The admin site only
|
||||
allows access to users with those two fields both set to True.
|
||||
|
||||
How do I automatically set a field's value to the user who last edited the object in the admin?
|
||||
-----------------------------------------------------------------------------------------------
|
||||
|
||||
At this point, you can't do this. But it's an oft-requested feature, so we're
|
||||
discussing how it can be implemented. The problem is we don't want to couple
|
||||
the model layer with the admin layer with the request layer (to get the current
|
||||
user). It's a tricky problem.
|
||||
|
||||
How do I limit admin access so that objects can only be edited by the users who created them?
|
||||
---------------------------------------------------------------------------------------------
|
||||
|
||||
See the answer to the previous question.
|
||||
|
||||
My "list_filter" contains a ManyToManyField, but the filter doesn't display.
|
||||
----------------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue