Commit 2485bb32 by Dányi Bence

school: @login_required added to group creation

parent 66b5fe00
...@@ -147,6 +147,7 @@ def group_show(request, gid): ...@@ -147,6 +147,7 @@ def group_show(request, gid):
'members': group.members.all() 'members': group.members.all()
})) }))
@login_required
def group_new(request): def group_new(request):
name = request.POST['name'] name = request.POST['name']
semester = Semester.objects.get(id=request.POST['semester']) semester = Semester.objects.get(id=request.POST['semester'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment