Skip to content

Commit

Permalink
Use create mixin from resolwe
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorjerse committed Jan 13, 2025
1 parent 0d3f5b9 commit 9de77d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resolwe_bio/variants/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from rest_framework import mixins, viewsets

from resolwe.flow.filters import OrderingFilter
from resolwe.flow.views.mixins import ResolweCreateModelMixin

from resolwe_bio.variants.filters import (
VariantAnnotationFilter,
Expand All @@ -31,7 +32,9 @@
logger = logging.getLogger(__name__)


class VariantViewSet(mixins.ListModelMixin, viewsets.GenericViewSet):
class VariantViewSet(
mixins.ListModelMixin, ResolweCreateModelMixin, viewsets.GenericViewSet
):
"""Variant endpoint."""

queryset = Variant.objects.all()
Expand Down

0 comments on commit 9de77d7

Please sign in to comment.