Skip to content

Commit

Permalink
fix no-self and coupled shift config forms
Browse files Browse the repository at this point in the history
  • Loading branch information
felixrindt committed Jan 14, 2023
1 parent d46c87a commit c436aa2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ephios/plugins/basesignup/signup/coupled_signup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ class ConfigurationForm(forms.Form):
),
)

def __init__(self, *args, **kwargs):
self.event = kwargs.pop("event")
super().__init__(*args, **kwargs)

@staticmethod
def format_leader_shift_id(value):
return str(Shift.objects.get(id=value) if isinstance(value, int) else value)
Expand Down
4 changes: 4 additions & 0 deletions ephios/plugins/basesignup/signup/no_selfservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ class NoSelfserviceConfigurationForm(forms.Form):
initial="",
)

def __init__(self, *args, **kwargs):
self.event = kwargs.pop("event")
super().__init__(*args, **kwargs)


class NoSelfserviceSignupMethod(RenderParticipationPillsShiftStateMixin, BaseSignupMethod):
slug = "no_selfservice"
Expand Down

0 comments on commit c436aa2

Please sign in to comment.