Skip to content
Snippets Groups Projects

Resolve "Ajouter un bouton 'Export CSV' sur la page des Conventions pour les secretaires de départements"

8 files
+ 79
11
Compare changes
  • Side-by-side
  • Inline

Files

@@ -12,7 +12,9 @@ class Command(BaseCommand):
def handle(self, *args, **options):
limite = dt.datetime.now() - dt.timedelta(days=settings.DELAIS_RESERVATION)
conventions = Convention.objects.filter(etat=Convention.Etat.ATTENTE_DEMANDEUR, date_debut__lt=limite)
conventions = Convention.objects.filter(
etat=Convention.Etat.ATTENTE_DEMANDEUR, date_debut__lt=limite
)
for convention in conventions:
materiel = convention.materiel
materiel.etat = Materiel.Etat.DISPO
Loading