today = datetime.date.today()
queryset = AppointmentSlot.objects.filter(appointment_period=self).order_by('-date')
if platform_only:
- queryset = queryset.filter(mode='distance', allow_elearning=True)
+ queryset = queryset.filter(allow_elearning=True)
else:
queryset = queryset.filter(allow_presentiel=True)
for slot in queryset:
if ap_period.is_open:
modes = ap_period.modes
# platformonly student can't subscribe to presentiel appointments
- if platform_only:
- try:
- modes.remove(('presentiel', 'Presentiel'))
- except KeyError:
- pass
+ # if platform_only:
+ # try:
+ # modes.remove(('presentiel', 'Presentiel'))
+ # except KeyError:
+ # pass
ap_periods.append({
'days':ap_period.days(platform_only),
'name': ap_period.name,