Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Marishka17 committed Feb 25, 2022
1 parent 401fbd0 commit 92f80bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cvat/apps/organizations/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ class MembershipViewSet(mixins.RetrieveModelMixin, mixins.DestroyModelMixin,
queryset = Membership.objects.all()
ordering = '-id'
http_method_names = ['get', 'patch', 'delete', 'head', 'options']
search_fields = ('user', 'role')
filter_fields = list(search_fields) + ['id']
search_fields = ('user_name', 'role')
filter_fields = list(search_fields) + ['id', 'user_id']
ordering_fields = filter_fields
lookup_fields = {'user': 'user__id'}
lookup_fields = {'user': 'user__id', 'user_name': 'user__username'}
iam_organization_field = 'organization'

def get_serializer_class(self):
Expand Down

0 comments on commit 92f80bf

Please sign in to comment.