Skip to content

Commit

Permalink
Rename field
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Aug 23, 2023
1 parent ba88ec9 commit 8cc3f41
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lemarche/tenders/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ class TenderAdmin(FieldsetsInlineMixin, admin.ModelAdmin):
{
"fields": (
"survey_transactioned_answer",
"survey_transactioned_date",
"survey_transactioned_answer_date",
"siae_transactioned",
)
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Migration(migrations.Migration):
),
migrations.AddField(
model_name="tender",
name="survey_transactioned_date",
name="survey_transactioned_answer_date",
field=models.DateTimeField(
blank=True, null=True, verbose_name="Sondage transaction J+30 : date de réponse"
),
Expand Down
2 changes: 1 addition & 1 deletion lemarche/tenders/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ class Tender(models.Model):
survey_transactioned_answer = models.BooleanField(
verbose_name="Sondage transaction J+30 : réponse", blank=True, null=True
)
survey_transactioned_date = models.DateTimeField(
survey_transactioned_answer_date = models.DateTimeField(
"Sondage transaction J+30 : date de réponse", blank=True, null=True
)

Expand Down
2 changes: 1 addition & 1 deletion lemarche/www/tenders/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ def get(self, request, *args, **kwargs):
# update survey_transactioned_answer
Tender.objects.filter(id=self.object.id).update(
survey_transactioned_answer=survey_transactioned_answer,
survey_transactioned_date=timezone.now(),
survey_transactioned_answer_date=timezone.now(),
updated_at=timezone.now(),
)
messages.add_message(
Expand Down

0 comments on commit 8cc3f41

Please sign in to comment.