|
@@ -130,7 +130,7 @@ class SerialNumberView(View):
|
|
|
if count == 5 and value is False:
|
|
|
return response.json(5)
|
|
|
|
|
|
- quantity = int(quantity)
|
|
|
+ quantity = int( Q)
|
|
|
|
|
|
company_serial_qs = CompanySerialModel.objects.filter(company__secret=company_id, status=0)
|
|
|
if not company_serial_qs.exists():
|
|
@@ -209,7 +209,7 @@ class SerialNumberView(View):
|
|
|
if not company_serial_qs.exists():
|
|
|
return response.json(173)
|
|
|
|
|
|
- region_country_qs = RegionCountryModel.objects.filter(number=serial)
|
|
|
+ region_country_qs = RegionCountryModel.objects.filter(number=country_id)
|
|
|
endpoint = 'a2rqy12o004ad8-ats.iot.us-east-1.amazonaws.com'
|
|
|
if region_country_qs.exists():
|
|
|
user_region = region_country_qs[0]
|