fix compatibility issue with rest_framework 3.3.3
diff --git a/xos/core/xoslib/methods/volttenant.py b/xos/core/xoslib/methods/volttenant.py
index 05cd7e8..229e105 100644
--- a/xos/core/xoslib/methods/volttenant.py
+++ b/xos/core/xoslib/methods/volttenant.py
@@ -60,21 +60,21 @@
def get_queryset(self):
queryset = VOLTTenant.get_tenant_objects().select_related().all()
- service_specific_id = self.request.QUERY_PARAMS.get('service_specific_id', None)
+ service_specific_id = self.request.query_params.get('service_specific_id', None)
if service_specific_id is not None:
queryset = queryset.filter(service_specific_id=service_specific_id)
-# vlan_id = self.request.QUERY_PARAMS.get('vlan_id', None)
+# vlan_id = self.request.query_params.get('vlan_id', None)
# if vlan_id is not None:
# ids = [x.id for x in queryset if x.get_attribute("vlan_id", None)==vlan_id]
# queryset = queryset.filter(id__in=ids)
- c_tag = self.request.QUERY_PARAMS.get('c_tag', None)
+ c_tag = self.request.query_params.get('c_tag', None)
if c_tag is not None:
ids = [x.id for x in queryset if x.get_attribute("c_tag", None)==c_tag]
queryset = queryset.filter(id__in=ids)
- s_tag = self.request.QUERY_PARAMS.get('s_tag', None)
+ s_tag = self.request.query_params.get('s_tag', None)
if s_tag is not None:
ids = [x.id for x in queryset if x.get_attribute("s_tag", None)==s_tag]
queryset = queryset.filter(id__in=ids)