diff --git a/api/flags/views.py b/api/flags/views.py index 358aeeb707..2a694eee59 100644 --- a/api/flags/views.py +++ b/api/flags/views.py @@ -74,7 +74,7 @@ def get_queryset(self): if case: flags = get_flags(get_case(case)) else: - flags = Flag.objects.exclude(level=FlagLevels.PARTY_ON_APPLICATION, id__in=SystemFlags.list) + flags = Flag.objects.exclude(level=FlagLevels.PARTY_ON_APPLICATION) if name: flags = flags.filter(name__icontains=name) diff --git a/api/staticdata/management/commands/seedflags.py b/api/staticdata/management/commands/seedflags.py index 339c0a5866..b0b2af840d 100644 --- a/api/staticdata/management/commands/seedflags.py +++ b/api/staticdata/management/commands/seedflags.py @@ -18,5 +18,4 @@ class Command(SeedCommand): @transaction.atomic def operation(self, *args, **options): csv = self.read_csv(FLAGS_FILE) - self.delete_unused_objects(Flag, csv) self.update_or_create(Flag, csv)