2023-12-13 23:58:00 +01:00
|
|
|
from django.db import models
|
2023-12-14 19:40:14 +01:00
|
|
|
from django.utils.translation import gettext_lazy as _
|
2023-12-13 23:58:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
class MusicrateSettings(models.Model):
|
|
|
|
event = models.OneToOneField(
|
|
|
|
to="event.Event",
|
|
|
|
on_delete=models.CASCADE,
|
|
|
|
related_name="pretalx_musicrate_settings",
|
|
|
|
)
|
2023-12-14 19:40:14 +01:00
|
|
|
submission_types = models.ManyToManyField(
|
|
|
|
to="submission.SubmissionType",
|
|
|
|
related_name="pretalx_musicrate_settings",
|
|
|
|
help_text=_(
|
|
|
|
"You can limit pretalx-musicrate to some session types. Leave this field empty to rate all session types."
|
|
|
|
),
|
|
|
|
verbose_name=_("Session Types"),
|
|
|
|
blank=True,
|
|
|
|
)
|