Skip to content

Commit

Permalink
Migrator bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
rwakulszowa committed Jul 24, 2021
1 parent db107e4 commit febe6cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend-project/small_eod/migration_v1/migrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,9 @@ def migrate_letter(old_letter):
)
)

new_reference_number = ReferenceNumber.get_or_create(name=old_letter.identifier)
new_reference_number, _ = ReferenceNumber.objects.get_or_create(
name=old_letter.identifier
)

new_letter = Letter(
direction=new_direction,
Expand Down

0 comments on commit febe6cd

Please sign in to comment.