Parcourir la source

Actually save the technical contact email...

Gu1 il y a 11 ans
Parent
commit
8e974088c3
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      ffdnispdb/views.py

+ 2 - 1
ffdnispdb/views.py

@@ -130,7 +130,7 @@ def create_project_json():
         u=list(form.url.data)
         u[2]='/isp.json' # new path
         url=urlunsplit(u)
-        session['form_json'] = {'url': url}
+        session['form_json'] = {'url': url, 'tech_email': form.tech_email.data}
         return render_template('project_json_validator.html')
     return render_template('project_json_form.html', form=form)
 
@@ -147,6 +147,7 @@ def create_project_json_confirm():
             isp.shortname=jdict['shortname']
         isp.url=session['form_json']['url']
         isp.json=jdict
+        isp.tech_email=session['form_json']['tech_email']
         del session['form_json']
 
         db.session.add(isp)