123
This commit is contained in:
@@ -265,9 +265,9 @@ class SiteSectorModelViewSet(AccountModelViewSet):
|
||||
if query_params is None:
|
||||
# Fallback for non-DRF requests
|
||||
query_params = getattr(self.request, 'GET', {})
|
||||
site_id = query_params.get('site_id')
|
||||
site_id = query_params.get('site_id') or query_params.get('site')
|
||||
else:
|
||||
site_id = query_params.get('site_id')
|
||||
site_id = query_params.get('site_id') or query_params.get('site')
|
||||
except AttributeError:
|
||||
site_id = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user