Skip to content

Commit

Permalink
Add field tender.contact_company_name
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Sep 11, 2023
1 parent 2e14a8a commit cfcaa8f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
22 changes: 22 additions & 0 deletions lemarche/tenders/migrations/0055_tender_company_name.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Generated by Django 4.2.2 on 2023-09-11 10:17

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("tenders", "0054_tender_survey_transactioned_send_date"),
]

operations = [
migrations.AddField(
model_name="tender",
name="company_name",
field=models.CharField(
blank=True,
help_text="Laisser vide pour afficher le nom de l'entreprise de l'auteur",
max_length=255,
verbose_name="Nom de l'entreprise du contact",
),
),
]
6 changes: 6 additions & 0 deletions lemarche/tenders/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,12 @@ class Tender(models.Model):
max_length=20,
blank=True,
)
company_name = models.CharField(
verbose_name="Nom de l'entreprise du contact",
help_text="Laisser vide pour afficher le nom de l'entreprise de l'auteur",
max_length=255,
blank=True,
)

sectors = models.ManyToManyField(
"sectors.Sector",
Expand Down

0 comments on commit cfcaa8f

Please sign in to comment.