From a921415ea63a487728749d7591d37b5d87402646 Mon Sep 17 00:00:00 2001 From: "madjid.asa" Date: Thu, 22 Feb 2024 14:02:41 +0100 Subject: [PATCH] add attribute model to tendersiae for delete --- .../0078_tendersiae_is_deleted_by_siae.py | 17 +++++++++++++++++ lemarche/tenders/models.py | 1 + 2 files changed, 18 insertions(+) create mode 100644 lemarche/tenders/migrations/0078_tendersiae_is_deleted_by_siae.py diff --git a/lemarche/tenders/migrations/0078_tendersiae_is_deleted_by_siae.py b/lemarche/tenders/migrations/0078_tendersiae_is_deleted_by_siae.py new file mode 100644 index 000000000..4f81e2122 --- /dev/null +++ b/lemarche/tenders/migrations/0078_tendersiae_is_deleted_by_siae.py @@ -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 ?"), + ), + ] diff --git a/lemarche/tenders/models.py b/lemarche/tenders/models.py index 5c3d73d39..2d46d7a37 100644 --- a/lemarche/tenders/models.py +++ b/lemarche/tenders/models.py @@ -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)