fix: assignee assignment
This commit is contained in:
parent
d5e3a35056
commit
ec3acac3fc
|
@ -1 +1 @@
|
|||
__version__ = "2025.4.0"
|
||||
__version__ = "2025.4.1"
|
||||
|
|
|
@ -62,12 +62,9 @@ class AssigneeForm(forms.ModelForm):
|
|||
except Assignee.DoesNotExist:
|
||||
self.instance = Assignee(submission=submission)
|
||||
super().__init__(*args, instance=self.instance, **kwargs)
|
||||
self.fields["user"].queryset = User.objects.none().union(
|
||||
*(
|
||||
t.members.all()
|
||||
for t in submission.event.teams.filter(can_change_submissions=True)
|
||||
)
|
||||
)
|
||||
self.fields["user"].queryset = User.objects.filter(
|
||||
teams__in=submission.event.teams, teams__can_change_submissions=True
|
||||
).distinct()
|
||||
|
||||
class Meta:
|
||||
model = Assignee
|
||||
|
|
Loading…
Reference in New Issue