Skip to content
Snippets Groups Projects
Commit a25f0768 authored by Julian's avatar Julian
Browse files

Activity on Dashboard. FAQ is now ready

parent 9b155b40
No related branches found
No related tags found
1 merge request!86Merge school-apps
......@@ -4,6 +4,8 @@ from faq.forms import FAQForm
from datetime import datetime
from dashboard.models import Activity
# Create your views here.
def create_info(text):
......@@ -29,6 +31,10 @@ def ask(request):
new_question.save()
act = Activity(title="Du hast uns eine Frage gestellt.", description=question, app="FAQ",
user=userid)
act.save()
return render(request, 'faq/question_submitted.html')
else:
form = FAQForm()
......
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