Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save treyruncie/9e9611e3bb66df7150afaff818f0834a to your computer and use it in GitHub Desktop.
Save treyruncie/9e9611e3bb66df7150afaff818f0834a to your computer and use it in GitHub Desktop.
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