From 48216a8862e032ae4be94ccbcc136a5620aa0755 Mon Sep 17 00:00:00 2001 From: Luca Date: Tue, 13 Feb 2024 15:30:34 +0100 Subject: [PATCH] feat: add submission assignee model --- pretalx_musicrate/models.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pretalx_musicrate/models.py b/pretalx_musicrate/models.py index 6347971..1b12af1 100644 --- a/pretalx_musicrate/models.py +++ b/pretalx_musicrate/models.py @@ -105,3 +105,10 @@ class Rating(models.Model): fields=("submission", "juror"), name="unique_rating" ), ] + + +class Assignee(models.Model): + submission = models.OneToOneField("submission.Submission", on_delete=models.CASCADE) + user = models.ForeignKey( + "person.User", on_delete=models.CASCADE, related_name="assigned_submissions" + )