1

I want to add some different custom permissions in django's user model.
I want to add:

Class Meta:
    permissions = (
        ("view_user", "Can see available users"),
        ("export_user", "Can Download the list of all users"),
    )

How can I achieve this? Kindly help me!

MHS
  • 2,260
  • 11
  • 31
  • 45

2 Answers2

2

You can implement your own custom permission class using built in feature PermissionsMixin

CrazyGeek
  • 3,397
  • 2
  • 24
  • 38
0

How you are creating database?

You should use south with -all method.

http://south.aeracode.org/

I have also find connected topic: Adding new custom permissions in Django

Community
  • 1
  • 1
Silwest
  • 1,620
  • 1
  • 15
  • 29