...
This commit is contained in:
@@ -51,7 +51,7 @@ def submit_question(request):
|
||||
question=form.cleaned_data['question'],
|
||||
awnser=form.cleaned_data['awnser'],
|
||||
)
|
||||
messages.info(request, f"Angelegt mit ID {subq.id}")
|
||||
messages.info(request, f"Die Frage wurde eingereicht")
|
||||
return render(request, 'submit-question.html', {'form': SubmitQuestion()})
|
||||
else:
|
||||
[messages.error(request,f'Error in {err}') for err in form.errors]
|
||||
|
||||
Reference in New Issue
Block a user