Merge branch 'develop' of bitbucket.org:iterativ/vbv_lernwelt into develop
This commit is contained in:
commit
e228feb237
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue