Merged in [8456] from rcross@amsl.com:
fix bug when trying to edit a session request that doesn't exist. fix bug when submitted session request form does not include conflict input fields.
- Legacy-Id: 8489
Note: SVN reference [8456] has been migrated to Git commit 09d7255e4a
This commit is contained in:
commit
06ea9a0025
|
@ -558,7 +558,6 @@ def gen_progress(context, final=True):
|
|||
path = os.path.join(settings.SECR_PROCEEDINGS_DIR,meeting.number,'progress-report.html')
|
||||
write_html(path,html.content)
|
||||
|
||||
@debug.trace
|
||||
def gen_research(context):
|
||||
meeting = context['meeting']
|
||||
gmet, gnot = groups_by_session(None,meeting)
|
||||
|
|
|
@ -273,13 +273,13 @@ def confirm(request, acronym):
|
|||
new_session.resources = form['resources']
|
||||
|
||||
# write constraint records
|
||||
save_conflicts(group,meeting,form['conflict1'],'conflict')
|
||||
save_conflicts(group,meeting,form['conflict2'],'conflic2')
|
||||
save_conflicts(group,meeting,form['conflict3'],'conflic3')
|
||||
save_conflicts(group,meeting,form.get('conflict1',''),'conflict')
|
||||
save_conflicts(group,meeting,form.get('conflict2',''),'conflic2')
|
||||
save_conflicts(group,meeting,form.get('conflict3',''),'conflic3')
|
||||
|
||||
if 'bethere' in form:
|
||||
bethere_cn = ConstraintName.objects.get(slug='bethere')
|
||||
for p in form['bethere']:
|
||||
for p in form.get('bethere', []):
|
||||
Constraint.objects.create(name=bethere_cn, source=group, person=p, meeting=new_session.meeting)
|
||||
|
||||
# deprecated in new schema
|
||||
|
@ -453,6 +453,8 @@ def edit_mtg(request, num, acronym):
|
|||
return redirect('sessions_view', acronym=acronym)
|
||||
|
||||
else:
|
||||
if not sessions:
|
||||
return redirect('sessions_new', acronym=acronym)
|
||||
form = SessionForm(initial=initial)
|
||||
|
||||
return render_to_response('sreq/edit.html', {
|
||||
|
|
Loading…
Reference in a new issue