Skip to content
Snippets Groups Projects

Resolve "Flying team location management site"

Merged Piotr Gawron requested to merge 178-flying-team-management-page into master
All threads resolved!
16 files
+ 330
23
Compare changes
  • Side-by-side
  • Inline
Files
16
+ 15
2
@@ -6,8 +6,9 @@ from django import forms
from django.forms import ModelForm, Form
from django.utils.dates import MONTHS
from web.models import StudySubject, Worker, Appointment, Visit, AppointmentType, ContactAttempt, AppointmentTypeLink, \
Availability, Holiday
from web.models import Appointment, AppointmentType, AppointmentTypeLink, \
Availability, ContactAttempt, FlyingTeam, Holiday, StudySubject, \
Worker, Visit, VoucherType, VoucherTypePrice
from web.models.constants import SUBJECT_TYPE_CHOICES
from web.views.notifications import get_filter_locations
@@ -368,6 +369,18 @@ def validate_availability_conflict(self, cleaned_data, availability):
self.add_error('available_till', error)
class FlyingTeamAddForm(ModelForm):
class Meta:
model = FlyingTeam
fields = "__all__"
class FlyingTeamEditForm(ModelForm):
class Meta:
model = FlyingTeam
fields = "__all__"
class HolidayAddForm(ModelForm):
datetime_start = forms.DateTimeField(widget=forms.DateTimeInput(DATETIMEPICKER_DATE_ATTRS),
initial=datetime.datetime.now().replace(hour=8, minute=0),
Loading