From 14ea5bfef5f10fccd20cc3dc70b39f55673b0ebd Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 23 Jan 2006 23:22:45 +0000 Subject: [PATCH] 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 --- docs/faq.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/faq.txt b/docs/faq.txt index 00fb881c7d..2bf31aeffd 100644 --- a/docs/faq.txt +++ b/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. ----------------------------------------------------------------------------