Created
March 31, 2016 19:50
-
-
Save treyruncie/9e9611e3bb66df7150afaff818f0834a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from gza.artist_shops.models import * | |
from django.contrib.auth.models import User, Group, Permission | |
from django.contrib.contenttypes.models import ContentType | |
content_type = ContentType.objects.get_for_model(ArtistShopSignupLandings) | |
permission = Permission.objects.create(codename='add_artistshopsignuplandings', name='Can add artist shop signup landings', content_type=content_type) | |
permission = Permission.objects.create(codename='create_artistshopsignuplandings', name='Can create artist shop signup landings', content_type=content_type) | |
permission = Permission.objects.create(codename='delete_artistshopsignuplandings', name='Can delete artist shop signup landings', content_type=content_type) | |
permission = Permission.objects.create(codename='change_artistshopsignuplandings', name='Can change artist shop signup landings', content_type=content_type) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment