KingFish
KingFish

Reputation: 9183

Do Not Populate auth_permission

When I do a syncdb, I do not want the auth_permission table to populate, or there are certain permissions I want to be able to "grant" Example: account | user | can_add_user is not a permission I need granted.

Can I eliminate these, and if so, how.

Thanks

Upvotes: 1

Views: 138

Answers (1)

KingFish
KingFish

Reputation: 9183

Figured it out...

class MyModel(Models.model):
    Meta:
        default_permissions = ()

This only works in >= Django 1.7

Upvotes: 1

Related Questions