Skip to content

Commit

Permalink
New field Tender.admins
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Mar 4, 2024
1 parent 6f014b3 commit 64b5e72
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
25 changes: 25 additions & 0 deletions lemarche/tenders/migrations/0078_tender_admins.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Generated by Django 4.2.9 on 2024-03-04 13:32

from django.conf import settings
from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("tenders", "0077_alter_tender_siae_kind"),
]

operations = [
migrations.AddField(
model_name="tender",
name="admins",
field=models.ManyToManyField(
blank=True,
help_text="Champ renseigné par un ADMIN",
related_name="tenders_admins",
to=settings.AUTH_USER_MODEL,
verbose_name="Admin(s) du besoin",
),
),
]
8 changes: 8 additions & 0 deletions lemarche/tenders/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,14 @@ class Tender(models.Model):
siae_list_last_seen_date = models.DateTimeField(
"Date de dernière visite de l'auteur sur la page 'structures intéressées'", blank=True, null=True
)

admins = models.ManyToManyField(
"users.User",
verbose_name="Admin(s) du besoin",
help_text=ADMIN_FIELD_HELP_TEXT,
related_name="tenders_admins",
blank=True,
)
logs = models.JSONField(verbose_name="Logs historiques", editable=False, default=list)
source = models.CharField(
verbose_name="Source",
Expand Down

0 comments on commit 64b5e72

Please sign in to comment.