From 38793f69c3dcf6f2d4011a2f70f8626eea948862 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 22 Oct 2021 17:36:55 +0100 Subject: [PATCH] only set public on create --- app/video/management/commands/load_titles.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/video/management/commands/load_titles.py b/app/video/management/commands/load_titles.py index bbb4104..a2fc9d7 100644 --- a/app/video/management/commands/load_titles.py +++ b/app/video/management/commands/load_titles.py @@ -39,6 +39,7 @@ class Command(BaseCommand): elif key != 'id': f.data[{ }.get(key, key)] = value - f.public = True + if c: + f.public = True f.slug = item['id'] f.save()