Skip to content

Commit

Permalink
make submission to django work, implement RRULE serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
jeriox committed Sep 7, 2024
1 parent 6a7c851 commit 487270f
Show file tree
Hide file tree
Showing 5 changed files with 292 additions and 211 deletions.
15 changes: 1 addition & 14 deletions ephios/core/forms/events.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import operator
import re
from datetime import date, datetime, timedelta
from datetime import datetime, timedelta

from crispy_forms.bootstrap import FormActions
from crispy_forms.helper import FormHelper
Expand All @@ -16,7 +16,6 @@
from django_select2.forms import Select2MultipleWidget
from dynamic_preferences.forms import PreferenceForm
from guardian.shortcuts import assign_perm, get_objects_for_user, get_users_with_perms, remove_perm
from recurrence.forms import RecurrenceField

from ephios.core.dynamic_preferences_registry import event_type_preference_registry
from ephios.core.models import Event, EventType, LocalParticipation, Shift, UserProfile
Expand Down Expand Up @@ -238,18 +237,6 @@ def clean(self):
return cleaned_data


class EventDuplicationForm(forms.Form):
start_date = forms.DateField(
widget=CustomDateInput,
initial=date.today(),
help_text=_(
"This date will be used as the start date for recurring events that you create below, e.g. daily events will be created from this date onwards."
),
label=_("Start date"),
)
recurrence = RecurrenceField(required=False)


class EventTypeForm(forms.ModelForm):
class Meta:
model = EventType
Expand Down
Loading

0 comments on commit 487270f

Please sign in to comment.