You're going to want to override a couple of ModelAdmin methods. Take a look at this blog post. http://www.b-list.org/weblog/2008/dec/24/admin/
On Tue, May 5, 2009 at 5:19 AM, topcoder...@gmail.com <topcoder...@gmail.com > wrote: > > Hello everyone, > > In my application, I heavily used django.contrib.admin to manage my > data, especially add/edit them. Now I need a quite customized > validation feature added into it. Certain user may have no authority > to edit some fields of some instances of a Model, and whether or not > she/he can edit it depending on her/his user name, current system time > and/or the field she/he attempts to edit. > > When user who has no authority attempts to edit something, she/he > should received a user-friendly error message just like she/he entered > invalid email address or leaved required field empty. > > How to hook this customized validation/authorization feature into > admin site? > > Thanks a lot. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---