Django

Code

Changeset 2120

Show
Ignore:
Timestamp:
01/23/06 17:22:45 (3 years ago)
Author:
adrian
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/faq.txt

    r2119 r2120  
    407407allows access to users with those two fields both set to True. 
    408408 
     409How do I automatically set a field's value to the user who last edited the object in the admin? 
     410----------------------------------------------------------------------------------------------- 
     411 
     412At this point, you can't do this. But it's an oft-requested feature, so we're 
     413discussing how it can be implemented. The problem is we don't want to couple 
     414the model layer with the admin layer with the request layer (to get the current 
     415user). It's a tricky problem. 
     416 
     417How do I limit admin access so that objects can only be edited by the users who created them? 
     418--------------------------------------------------------------------------------------------- 
     419 
     420See the answer to the previous question. 
     421 
    409422My "list_filter" contains a ManyToManyField, but the filter doesn't display. 
    410423----------------------------------------------------------------------------