Re: Add admin action to Django User

2010-11-01 Thread Enrico
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.contrib.auth.models import User class MyUserAdmin(UserAdmin): actions = ['my_action'] def my_action(self, request, queryset): # stuff here... admin.site.unregister(User) admin.site.regist

Re: Add admin action to Django User

2010-11-01 Thread Karim Gorjux
Maybe you'll find this also useful: http://www.theotherblog.com/Articles/2009/06/02/extending-the-django-admin-interface/ -- K. Blog Personale: http://www.karimblog.net -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, se

Re: Add admin action to Django User

2010-11-01 Thread Karim Gorjux
On Mon, Nov 1, 2010 at 05:03, Django-learner wrote: > Hi, I want to add an customized action to user management in django > admin site. I can see that only delete selected user is available, how > can I add more to that? Did you try to google that? This is my **first** result: http://docs.django

Add admin action to Django User

2010-11-01 Thread Django-learner
Hi, I want to add an customized action to user management in django admin site. I can see that only delete selected user is available, how can I add more to that? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email