Revision ad2b7483
Added by Serghei Mihai over 11 years ago
| calebasse/agenda/views.py | ||
|---|---|---|
|
initial['participants'] = self.request.GET.getlist('participants')
|
||
|
initial['time'] = self.request.GET.get('time')
|
||
|
initial['ressource'] = self.request.GET.get('ressource')
|
||
|
initial['duration'] = self.request.GET.get('duration')
|
||
|
return initial
|
||
|
|
||
|
def get_form_kwargs(self):
|
||
| ... | ... | |
|
initial['time'] = self.request.GET.get('time')
|
||
|
initial['event_type'] = 2
|
||
|
initial['ressource'] = self.request.GET.get('ressource')
|
||
|
initial['duration'] = self.request.GET.get('duration')
|
||
|
if not initial.has_key('services'):
|
||
|
initial['services'] = [self.service]
|
||
|
return initial
|
||
Also available in: Unified diff
agenda: schedule or event start time and duration initialized on free time