Hi,

I'm trying to specify a custom permission on the User model.
I would use it to delegate control to users over certain models.

I have an admin.py file where i add this:

from django.contrib.auth.models import User
...
class UserAdmin(admin.ModelAdmin):
    class Meta:
        permissions = (
            ("create_user", "Create a user from the standard view"),
        )

I can't add admin.site.register(User, UserAdmin) because then i get
a message that it's already registered.

When i do python manage.py syncdb i don't see anything written to the
db. The permission is also not visible from within the users part of the
admin site.

How can i add a custom permission to the standard User model?

Thanks,
Benedict


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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