filter 2 page remove from filter page
This commit is contained in:
@@ -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',)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user