Skip to content

Commit df6266c

Browse files
fix: block creation of floorplan without image (#9040)
* fix: block creation of floorplan without image * chore: migration
1 parent 2a16b6d commit df6266c

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright The IETF Trust 2025, All Rights Reserved
2+
3+
from django.db import migrations, models
4+
import ietf.meeting.models
5+
import ietf.utils.storage
6+
7+
8+
class Migration(migrations.Migration):
9+
dependencies = [
10+
("meeting", "0013_correct_reg_checkedin"),
11+
]
12+
13+
operations = [
14+
migrations.AlterField(
15+
model_name="floorplan",
16+
name="image",
17+
field=models.ImageField(
18+
default=None,
19+
storage=ietf.utils.storage.BlobShadowFileSystemStorage(
20+
kind="", location=None
21+
),
22+
upload_to=ietf.meeting.models.floorplan_path,
23+
),
24+
),
25+
]

ietf/meeting/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ class FloorPlan(models.Model):
530530
image = models.ImageField(
531531
storage=BlobShadowFileSystemStorage(kind="floorplan"),
532532
upload_to=floorplan_path,
533-
blank=True,
533+
blank=False,
534534
default=None,
535535
)
536536
#

0 commit comments

Comments
 (0)