workshop attendee: config limited to orga status
This commit is contained in:
parent
483a794d23
commit
199d2b6d93
|
@ -194,6 +194,8 @@ def talk_edit(request, talk=None):
|
||||||
form.fields.pop('duration')
|
form.fields.pop('duration')
|
||||||
form.fields.pop('start_date')
|
form.fields.pop('start_date')
|
||||||
form.fields.pop('room')
|
form.fields.pop('room')
|
||||||
|
form.fields.pop('registration_required')
|
||||||
|
form.fields.pop('attendees_limit')
|
||||||
if not talk.is_moderable_by(request.user):
|
if not talk.is_moderable_by(request.user):
|
||||||
form.fields['title'].disabled = True
|
form.fields['title'].disabled = True
|
||||||
else:
|
else:
|
||||||
|
@ -203,6 +205,8 @@ def talk_edit(request, talk=None):
|
||||||
form.fields.pop('duration')
|
form.fields.pop('duration')
|
||||||
form.fields.pop('start_date')
|
form.fields.pop('start_date')
|
||||||
form.fields.pop('room')
|
form.fields.pop('room')
|
||||||
|
form.fields.pop('registration_required')
|
||||||
|
form.fields.pop('attendees_limit')
|
||||||
if request.method == 'POST' and form.is_valid():
|
if request.method == 'POST' and form.is_valid():
|
||||||
if hasattr(talk, 'id'):
|
if hasattr(talk, 'id'):
|
||||||
talk = form.save()
|
talk = form.save()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user