diff --git a/lemarche/tenders/migrations/0055_tender_company_name.py b/lemarche/tenders/migrations/0055_tender_company_name.py new file mode 100644 index 000000000..8023fa887 --- /dev/null +++ b/lemarche/tenders/migrations/0055_tender_company_name.py @@ -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", + ), + ), + ] diff --git a/lemarche/tenders/models.py b/lemarche/tenders/models.py index 2d306757c..1b325c4dd 100644 --- a/lemarche/tenders/models.py +++ b/lemarche/tenders/models.py @@ -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",