Skip to content

Commit

Permalink
Tender: new stat field siae_count
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Oct 3, 2023
1 parent af09f37 commit 4a7c039
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lemarche/tenders/migrations/0058_tender_siae_count.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 4.2.2 on 2023-10-03 09:24

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("tenders", "0057_alter_tender_siae_transactioned"),
]

operations = [
migrations.AddField(
model_name="tender",
name="siae_count",
field=models.IntegerField(default=0, verbose_name="Nombre de structures concernées"),
),
]
1 change: 1 addition & 0 deletions lemarche/tenders/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ class Tender(models.Model):
)

# stats
siae_count = models.IntegerField("Nombre de structures concernées", default=0)
published_at = models.DateTimeField("Date de publication", blank=True, null=True)
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
Expand Down

0 comments on commit 4a7c039

Please sign in to comment.