Skip to content
Snippets Groups Projects
Commit caf8f8ee authored by Frank Poetzsch-Heffter's avatar Frank Poetzsch-Heffter
Browse files

fixed edit id bug

parent 76faa32e
No related branches found
No related tags found
1 merge request!86Merge school-apps
......@@ -44,7 +44,6 @@
<form action="" method="POST" class="right">
{% csrf_token %}
<input type="hidden" value="{{ aub.id }}" name="aub-id">
<button type="submit" onclick="return confirm('Wollen Sie den Antrag wirklich löschen?')" name="cancel" class="waves-effect waves-light btn-flat btn-flat-medium" title="Löschen">
<i class="material-icons center red-text">cancel</i>
</button>
......
......@@ -93,8 +93,8 @@ def apply_for(request):
@login_required
@permission_required('aub.apply_for_aub')
def edit(request, aub_id):
aub = get_object_or_404(Aub, id=aub_id)
def edit(request, id):
aub = get_object_or_404(Aub, id=id)
form = ApplyForAUBForm(instance=aub)
template = 'aub/edit.html'
if request.method == 'POST':
......
......@@ -8,7 +8,6 @@ from .forms import FeedbackForm
from kanboard import Kanboard
from dashboard.models import Activity
print("HI")
api_token = kanboard_settings.api_token
p_id_rebus = kanboard_settings.kb_project_id_rebus
p_id_feedback = kanboard_settings.kb_project_id_feedback
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment