Skip to content

Commit

Permalink
Merge pull request #304 from SELab-2/backend_extras
Browse files Browse the repository at this point in the history
Backend extras
  • Loading branch information
LGDTimtou authored May 22, 2024
2 parents 71d537e + f21b322 commit fbe8d18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/views/vak.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from django.shortcuts import redirect
from api.models.vak import Vak
from api.serializers.vak import VakSerializer
from api.serializers.vak import VakSerializer, add_students_to_group
from api.utils import has_permissions, is_lesgever, get_gebruiker


Expand Down Expand Up @@ -116,4 +116,6 @@ def vak_detail_accept_invite(request, id, format=None):
vak.studenten.add(gebruiker)
vak.save()

add_students_to_group(vak)

return redirect("vak_detail", id=vak.vak_id)

0 comments on commit fbe8d18

Please sign in to comment.