filter 2 page remove from filter page

This commit is contained in:
fjrodriguez
2022-12-05 09:56:04 -06:00
parent 896e39644f
commit 4604c0894c
9 changed files with 64 additions and 14 deletions

View File

@@ -37,7 +37,7 @@ class Clientes(models.Model):
Nombre = models.CharField(max_length=100)
Activo = models.BooleanField(default=True)
Activo = models.BooleanField(default=False)
fecha_baja = models.DateField(blank=True,null=True)
@property
@@ -47,6 +47,6 @@ class Clientes(models.Model):
year = today.year
return Timbres.objects.filter(rfcc=self.RFC, created_at__year=str(year),created_at__month=str(month)).count()
class Meta:
ordering = ('RFC',)
ordering = ('-Activo','RFC',)