Filter to "de-CH"
This commit is contained in:
parent
4e7ca3bd1a
commit
b5e2f5af50
|
|
@ -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