Hi everybody,

I'd like to take advantage of Admin modules to edit some my models
e.g. user profile by navigating user to
/admin/myapp/<modelname>/<user_id>/ to open
change form.

1. I should check, whether <user_id> is the same as request.user.id to
    prevent user from editing a foreign user record. But I don't know how to
    implement this. Perhaps by overriding some model's method or listening
    for a suitable signal.

2. In the related admin's template I need somehow override tag
    submit_row to hide all buttons except Save one. As well, I have no idea
   how to do this.

3. Finally, is my conception of using Admin modules this way feasible per se?


Please, could somebody enlighten me on this?


Thanks, Angela

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to