Remove default name from create_review_permssions

This was removed somewhere in 1.8, which means this results in a
failure.  If I understand correctly, this "name" is now derived from the
model name's __str__ or something like that.
This commit is contained in:
Sachi King 2017-07-07 00:16:08 +10:00
parent e668bf03c2
commit 31375f9e91

View file

@ -12,7 +12,6 @@ class Command(BaseCommand):
ct, created = ContentType.objects.get_or_create(
model="",
app_label="reviews",
defaults={"name": "reviews"}
)
for ps in ProposalSection.objects.all():