Skip to content

Commit

Permalink
add attribute model to tendersiae for delete
Browse files Browse the repository at this point in the history
  • Loading branch information
madjid-asa committed Feb 29, 2024
1 parent 1225a0c commit a921415
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lemarche/tenders/migrations/0078_tendersiae_is_deleted_by_siae.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 4.2.9 on 2024-02-22 13:01

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("tenders", "0077_alter_tender_siae_kind"),
]

operations = [
migrations.AddField(
model_name="tendersiae",
name="is_deleted_by_siae",
field=models.BooleanField(db_index=True, default=False, verbose_name="Supprimé par l'utilisateur ?"),
),
]
1 change: 1 addition & 0 deletions lemarche/tenders/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -973,6 +973,7 @@ class TenderSiae(models.Model):
default=tender_constants.TENDER_SIAE_SOURCE_EMAIL,
)
found_with_ai = models.BooleanField("Trouvé par l'IA", default=False)
is_deleted_by_siae = models.BooleanField("Supprimé par l'utilisateur ?", default=False, db_index=True)

# stats: relation
email_send_date = models.DateTimeField("Date d'envoi de l'e-mail", blank=True, null=True)
Expand Down

0 comments on commit a921415

Please sign in to comment.