Skip to content

Commit

Permalink
feat(Besoins): nouveau champ pour stocker la date de transaction (#1116)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn authored Mar 6, 2024
1 parent e042239 commit 7c52702
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions lemarche/tenders/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ class TenderAdmin(FieldsetsInlineMixin, admin.ModelAdmin):
"survey_transactioned_feedback",
"survey_transactioned_answer_date",
"siae_transactioned",
"siae_transactioned_last_updated",
)
},
),
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
),
),
]
3 changes: 3 additions & 0 deletions lemarche/tenders/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 7c52702

Please sign in to comment.