diff --git a/lemarche/tenders/admin.py b/lemarche/tenders/admin.py index a50bfdf75..4a125aaf1 100644 --- a/lemarche/tenders/admin.py +++ b/lemarche/tenders/admin.py @@ -342,6 +342,7 @@ class TenderAdmin(FieldsetsInlineMixin, admin.ModelAdmin): "survey_transactioned_feedback", "survey_transactioned_answer_date", "siae_transactioned", + "siae_transactioned_last_updated", ) }, ), diff --git a/lemarche/tenders/migrations/0079_tender_siae_transactioned_last_updated.py b/lemarche/tenders/migrations/0079_tender_siae_transactioned_last_updated.py new file mode 100644 index 000000000..c80c139e3 --- /dev/null +++ b/lemarche/tenders/migrations/0079_tender_siae_transactioned_last_updated.py @@ -0,0 +1,19 @@ +# Generated by Django 4.2.9 on 2024-03-06 08:39 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("tenders", "0078_tender_admins"), + ] + + operations = [ + migrations.AddField( + model_name="tender", + name="siae_transactioned_last_updated", + field=models.DateTimeField( + blank=True, null=True, verbose_name="Abouti à une transaction : date de mise à jour" + ), + ), + ] diff --git a/lemarche/tenders/models.py b/lemarche/tenders/models.py index 89738054d..fe79af028 100644 --- a/lemarche/tenders/models.py +++ b/lemarche/tenders/models.py @@ -509,6 +509,9 @@ class Tender(models.Model): blank=True, null=True, ) + siae_transactioned_last_updated = models.DateTimeField( + "Abouti à une transaction : date de mise à jour", blank=True, null=True + ) amount_exact = models.PositiveIntegerField( verbose_name="Montant exact du besoin", help_text=ADMIN_FIELD_HELP_TEXT, blank=True, null=True )