Sistemas bitacora
This commit is contained in:
@@ -222,11 +222,12 @@ class GetDeviceToken(APIView):
|
|||||||
def post(self,request):
|
def post(self,request):
|
||||||
try:
|
try:
|
||||||
data = request.data
|
data = request.data
|
||||||
|
sis = Sistema.objects.get(nombre_sistema=data.get('sistema'))
|
||||||
device = Device.objects.filter(
|
device = Device.objects.filter(
|
||||||
client__RFC=data.get('client'),
|
client__RFC=data.get('client'),
|
||||||
device_name=data.get('device_name'),
|
device_name=data.get('device_name'),
|
||||||
ip_address=data.get('ip_address'),
|
ip_address=data.get('ip_address'),
|
||||||
sistema=data.get('sistema'),
|
sistema= sis.id,#data.get('sistema'),
|
||||||
macAddress=data.get('macAddress')
|
macAddress=data.get('macAddress')
|
||||||
).first()
|
).first()
|
||||||
if device is not None:
|
if device is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user