sistemas app added

This commit is contained in:
fjrodriguez
2023-01-19 13:43:06 -06:00
parent cc8cd4d792
commit 35798c5304
10 changed files with 46 additions and 12 deletions

View File

@@ -74,13 +74,3 @@ class Clientes(models.Model):
ordering = ('-Activo','-conteo_mes','RFC')
class Maquinas_Conectadas(models.Model):
UserName = models.CharField(max_length=255)
PC_Name = models.CharField(max_length=255)
Is64 = models.BooleanField()
OSversion= models.CharField(max_length=255)
local_ip = models.CharField(max_length=55)
public_ip= models.CharField(max_length=55)
RFC = models.CharField(max_length=13)
class Meta:
abstract =True

View File

@@ -421,7 +421,7 @@ class add_timbre2(APIView):
modo=request.GET.get('modo', None)
obj={'uuid':uuid,'rfcc':rfcc,'fecha':fecha,'folio':folio,
'serie':serie,'tipo':tipo,'rfcp':rfcp,'modo':modo
}
}
try:
obj = Timbres.objects.create(**obj)
return Response({'data':'ok'})