Project

General

Profile

« Previous | Next » 

Revision 2ae5dd3d

Added by Benjamin Dauvergne over 12 years ago

agenda: hide periodicity fields when editing event and appointments

View differences:

calebasse/agenda/views.py
19 19
from calebasse.actes.validation import (automated_validation, unlock_all_acts_of_the_day)
20 20
from calebasse import cbv
21 21

  
22
from forms import (NewAppointmentForm, NewEventForm, UpdateAppointmentForm)
22
from forms import (NewAppointmentForm, NewEventForm, UpdateAppointmentForm, UpdateEventForm)
23 23

  
24 24
def redirect_today(request, service):
25 25
    '''If not date is given we redirect on the agenda for today'''
......
185 185

  
186 186
class UpdateEventView(TodayOccurrenceMixin, UpdateView):
187 187
    model = Event
188
    form_class = NewEventForm
188
    form_class = UpdateEventForm
189 189
    template_name = 'agenda/update-event.html'
190 190
    success_url = '..'
191 191

  

Also available in: Unified diff