Skip to content

Commit

Permalink
Merge pull request #788 from uktrade/LTD-1055-revert-changes
Browse files Browse the repository at this point in the history
[LTD-1055] Revert changes
  • Loading branch information
alixedi authored Jul 29, 2021
2 parents a17f8a6 + 38856c3 commit 9d9f746
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion api/flags/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion api/staticdata/management/commands/seedflags.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 9d9f746

Please sign in to comment.