Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Wellheor1 committed Oct 8, 2024
1 parent 1424357 commit b4b964f
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 b4b964f

Please sign in to comment.