Merge branch 'develop' of bitbucket.org:iterativ/vbv_lernwelt into develop

This commit is contained in:
Lorenz Padberg 2022-06-30 15:26:25 +02:00
commit e228feb237
1 changed files with 2 additions and 1 deletions

View File

@ -38,8 +38,9 @@ def generate_web_component_icons(request):
context={'svg_files': svg_files},
content_type="application/javascript"
)
@api_view(['GET'])
def learningpath_view(request, slug):
learning_path = LearningPath.objects.get(slug=slug)
learning_path = LearningPath.objects.get(slug=slug, locale__language_code='de-CH')
serializer = LearningPathSerializer(learning_path)
return Response(serializer.data)