Commit 8cd0b3f6 authored by Georges Gressot's avatar Georges Gressot 💬
Browse files

right

parent 090e76e1
......@@ -25,7 +25,10 @@
<a target="_blank" href="/./{{ bdd }}/projectmaster">{% trans "Contact du projet" %}</a>
<a target="_blank" href="/./default/about">{% trans "A propos" %}</a>
</nav>
<nav id="sticky-menu">
<a href="/{{ bdd }}/adminbase">{% trans "Vider les formulaires ci-dessous" %}</a>
<!-- <button><b><a href="/{{ bdd }}/projmaster">{% trans "Vider les formulaires ci-dessous" %}</a></b></button> -->
</nav>
{% if k != 0 %}
<p style="text-align:right;"><b><font color= #017a04 >@ </font></b>{{ k }} (<a href="/./{{ bdd }}/disconnect">{% trans "Déconnexion" %}</a>)</p>
{% else %}
......
......@@ -343,7 +343,10 @@ def adminbase(request, bdd):
if not projadmform.cleaned_data['contact'] in emaillist:
newadm =BddAdmin()
newadm.contact =projadmform.cleaned_data['contact']
newadm.ident =projadmform.cleaned_data['ident']
newuser =Utilisateur()
newuser.username =projadmform.cleaned_data['ident']
newuser.mail =projadmform.cleaned_data['contact']
newuser.save(using =bdd)
newadm.save(using =bdd)
return HttpResponseRedirect(url)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment