On 1/9/06, patrick kranzlmüller <[EMAIL PROTECTED]> wrote: > > we´re working on a basecamp-like project management system which we´ll > include into the admin-interface. > therefore, we´re having custom views (based on Add- and > ChangeManipulator) and we´d like to log user-actions. maybe i should > just import log_add_message (e.g.) from admin.main. then again, i´m not > sure if that´s the (django)way to go. > > if request.POST: > log_add_message(request.user, opts,manipulator,new_object) >
That sounds reasonable to me. I think the "django way" would be to copy how django.contrib.admin.views.main.add_stage or change_stage does it. Import it, and call it after your manipulator successfully save the object(s). Joseph

