Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Besoins): nouveau champ pour stocker la date de transaction #1116

Merged
merged 3 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading