Skip to content

Commit 13492ee

Browse files
committed
Indicate if a submission type can be recorded
1 parent a2a1bee commit 13492ee

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

backend/api/submissions/types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def resolver(self, info: Info):
3939
class SubmissionType:
4040
id: strawberry.ID
4141
name: str
42+
is_recordable: bool
4243

4344

4445
@strawberry.type

backend/submissions/admin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ class SubmissionAdmin(ExportMixin, ConferencePermissionMixin, admin.ModelAdmin):
249249
"conference",
250250
"audience_level",
251251
"languages",
252+
"do_not_record",
252253
)
253254
},
254255
),
@@ -325,7 +326,7 @@ class Media:
325326

326327
@admin.register(SubmissionType)
327328
class SubmissionTypeAdmin(admin.ModelAdmin):
328-
list_display = ("name",)
329+
list_display = ("name", "is_recordable")
329330

330331

331332
@admin.register(SubmissionTag)

backend/submissions/models.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,11 @@ def __str__(self):
236236

237237
class SubmissionType(models.Model):
238238
name = models.CharField(max_length=100, unique=True)
239+
is_recordable = models.BooleanField(
240+
_("is recordable"),
241+
default=True,
242+
help_text=_("If true, the proposals of this type can be recorded."),
243+
)
239244

240245
def __str__(self):
241246
return self.name

0 commit comments

Comments
 (0)