only set public on create

This commit is contained in:
j 2021-10-22 17:36:55 +01:00
parent 7f984cb416
commit 38793f69c3

View file

@ -39,6 +39,7 @@ class Command(BaseCommand):
elif key != 'id': elif key != 'id':
f.data[{ f.data[{
}.get(key, key)] = value }.get(key, key)] = value
if c:
f.public = True f.public = True
f.slug = item['id'] f.slug = item['id']
f.save() f.save()