Skip to content

Commit

Permalink
Merge pull request #4358 from mikhailprivalov/fix-upload-chambers
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
Wellheor1 authored Oct 8, 2024
2 parents 1424357 + b4b964f commit 3337c75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion podrazdeleniya/management/commands/import_chambers.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def handle(self, *args, **kwargs):
if not department:
self.stdout.write(f' Подразделения {current_department_title} - нет')
continue
chamber = Chamber.objects.filter(title__iexact=current_chamber_title).first()
chamber = Chamber.objects.filter(title__iexact=current_chamber_title, podrazdelenie_id=department.pk).first()
if not chamber:
chamber = Chamber(title=current_chamber_title, podrazdelenie_id=department.pk)
chamber.save()
Expand Down

0 comments on commit 3337c75

Please sign in to comment.