fix --> int type id on org filter
This commit is contained in:
@@ -269,7 +269,7 @@ class OrganizationViewSet(BaseViewSet, ModelViewSet, DynamicSearchMixin):
|
||||
|
||||
# filter by organization type
|
||||
if 'org_type' in param.keys():
|
||||
queryset = queryset.filter(type__id=param.get('org_type', 0))
|
||||
queryset = queryset.filter(type__id=int(param.get('org_type', 0)))
|
||||
|
||||
# filter on search
|
||||
if 'search' in param.keys():
|
||||
|
||||
Reference in New Issue
Block a user