Commit 1acc66d2 authored by Janez K's avatar Janez K
Browse files

typo

parent 178473d1
......@@ -30,7 +30,7 @@ class WidgetViewSet(viewsets.ModelViewSet):
API endpoint that allows widgets to be viewed or edited.
"""
model = Widget
filter_field = ('workflow',)
filter_fields = ('workflow',)
def get_serializer_class(self):
if self.action == 'list':
......
......@@ -42,7 +42,7 @@ class WidgetSerializer(serializers.HyperlinkedModelSerializer):
outputs = OutputSerializer(many=True, read_only=True)
workflow_link = serializers.HyperlinkedRelatedField(
read_only=True,
view_name='workflow-details'
view_name='workflow-detail'
)
class Meta:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment