-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature(Dépôt de besoin) : Envoi des dépôt de besoins par lot (#1025)
* update tender model * rename sent_at to first_sent_at and add attrs * add status for close tenders * update request to get the validated tenders but not sent * stop the task when tenders are sent * limit siaes by the admin paramater * add params to the admin * send each every 24 hours * order by super esi * improve ordering * improve by review
- Loading branch information
1 parent
01ac774
commit 7699d71
Showing
13 changed files
with
127 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
lemarche/tenders/migrations/0065_tender_limit_nb_siae_interested_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Generated by Django 4.2.2 on 2023-12-11 15:33 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("tenders", "0064_tender_status_sent"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="tender", | ||
name="limit_nb_siae_interested", | ||
field=models.PositiveSmallIntegerField( | ||
default=5, help_text="Champ renseigné par un ADMIN", verbose_name="Limite des SIAES intéressées" | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="tender", | ||
name="limit_send_to_siae_batch", | ||
field=models.PositiveSmallIntegerField( | ||
default=10, help_text="Champ renseigné par un ADMIN", verbose_name="Nombre de SIAES par envoi" | ||
), | ||
), | ||
migrations.RenameField( | ||
model_name="tender", | ||
old_name="sent_at", | ||
new_name="first_sent_at", | ||
), | ||
migrations.AlterField( | ||
model_name="tender", | ||
name="first_sent_at", | ||
field=models.DateTimeField(blank=True, null=True, verbose_name="Date du premier envoi"), | ||
), | ||
migrations.AddField( | ||
model_name="tender", | ||
name="last_sent_at", | ||
field=models.DateTimeField(blank=True, null=True, verbose_name="Date du dernier envoi"), | ||
), | ||
migrations.AddField( | ||
model_name="tender", | ||
name="version", | ||
field=models.PositiveIntegerField(default=0, verbose_name="Version"), | ||
), | ||
# this is migration to manage the existants stock | ||
migrations.AlterField( | ||
model_name="tender", | ||
name="version", | ||
field=models.PositiveIntegerField(default=1, verbose_name="Version"), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters