fix(Juror): remove unreleased base class
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is failing Details

This commit is contained in:
Luca 2023-12-16 21:25:17 +01:00
parent 21c3be56bc
commit c71a1e3b43
2 changed files with 24 additions and 2 deletions

View File

@ -0,0 +1,20 @@
# Generated by Django 4.2.8 on 2023-12-16 20:20
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("pretalx_musicrate", "0006_musicratesettings_link_questions"),
]
operations = [
migrations.RemoveField(
model_name="juror",
name="created",
),
migrations.RemoveField(
model_name="juror",
name="updated",
),
]

View File

@ -3,7 +3,7 @@ from secrets import token_urlsafe
from django.db import models
from django.utils.translation import gettext_lazy as _
from pretalx.common.mixins.models import PretalxModel
from django_scopes import ScopedManager
def generate_token():
@ -65,7 +65,9 @@ class MusicrateSettings(models.Model):
)
class Juror(PretalxModel):
class Juror(models.Model):
objects = ScopedManager(event="event")
event = models.ForeignKey(
"event.Event", on_delete=models.CASCADE, related_name="jurors"
)