Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added link to Luke Plant's current-user hack from docs/faq.txt

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3435 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit ed80500a302d6a79178eca0d33f6142f2cab7895 1 parent 45076bf
Adrian Holovaty authored July 24, 2006

Showing 1 changed file with 9 additions and 4 deletions. Show diff stats Hide diff stats

  1. 13  docs/faq.txt
13  docs/faq.txt
@@ -546,10 +546,15 @@ Set the ``CACHE_MIDDLEWARE_ANONYMOUS_ONLY`` setting to ``True``. See the
546 546
 How do I automatically set a field's value to the user who last edited the object in the admin?
547 547
 -----------------------------------------------------------------------------------------------
548 548
 
549  
-At this point, you can't do this. But it's an oft-requested feature, so we're
550  
-discussing how it can be implemented. The problem is we don't want to couple
551  
-the model layer with the admin layer with the request layer (to get the current
552  
-user). It's a tricky problem.
  549
+At this point, Django doesn't have an official way to do this. But it's an oft-requested
  550
+feature, so we're discussing how it can be implemented. The problem is we don't want to couple
  551
+the model layer with the admin layer with the request layer (to get the current user). It's a
  552
+tricky problem.
  553
+
  554
+One person hacked up a `solution that doesn't require patching Django`_, but note that it's an
  555
+unofficial solution, and there's no guarantee it won't break at some point.
  556
+
  557
+.. _solution that doesn't require patching Django: http://lukeplant.me.uk/blog.php?id=1107301634
553 558
 
554 559
 How do I limit admin access so that objects can only be edited by the users who created them?
555 560
 ---------------------------------------------------------------------------------------------

0 notes on commit ed80500

Please sign in to comment.
Something went wrong with that request. Please try again.