Skip to content

Commit 87273de

Browse files
committed
Not all the IETF 96 room names are in place yet. Use get_or_create in the data migration.
- Legacy-Id: 11591
1 parent 2fe2412 commit 87273de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/meeting/migrations/0026_add_floorplan_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def forward(apps, schema_editor):
5252
for item in rooms:
5353
name, floor_id, x1, y1, x2, y2 = item
5454
try:
55-
room = Room.objects.get(name=name, meeting=meeting)
55+
room, created = Room.objects.get_or_create(name=name, meeting=meeting)
5656
room.floorplan_id = floor_id
5757
room.x1 = x1
5858
room.y1 = y1

0 commit comments

Comments
 (0)