Skip to content

Commit

Permalink
Fix migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilouf committed Jan 9, 2025
1 parent 9c4c1bd commit b594678
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,24 @@ class Migration(migrations.Migration):
]

operations = [
migrations.RemoveField(
migrations.RenameField(
model_name="historicalsiae",
name="is_cocontracting",
old_name="is_cocontracting",
new_name="_is_cocontracting",
),
migrations.RemoveField(
migrations.RenameField(
model_name="siae",
name="is_cocontracting",
old_name="is_cocontracting",
new_name="_is_cocontracting",
),
migrations.AddField(
migrations.AlterField(
model_name="historicalsiae",
name="_is_cocontracting",
field=models.BooleanField(default=False, verbose_name="Fonctionnalité désactivée"),
field=models.BooleanField(default=False, verbose_name="Co-traitance (Fonctionnalité désactivée)"),
),
migrations.AddField(
migrations.AlterField(
model_name="siae",
name="_is_cocontracting",
field=models.BooleanField(default=False, verbose_name="Fonctionnalité désactivée"),
field=models.BooleanField(default=False, verbose_name="Co-traitance (Fonctionnalité désactivée)"),
),
]
2 changes: 1 addition & 1 deletion lemarche/siaes/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ class Siae(models.Model):
logo_url = models.URLField(verbose_name="Lien vers le logo", max_length=500, blank=True)

is_consortium = models.BooleanField(verbose_name="Consortium", default=False)
_is_cocontracting = models.BooleanField(verbose_name="Fonctionnalité désactivée", default=False)
_is_cocontracting = models.BooleanField(verbose_name="Co-traitance (Fonctionnalité désactivée)", default=False)

asp_id = models.IntegerField(verbose_name="ID ASP", blank=True, null=True)
is_active = models.BooleanField(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,38 @@ class Migration(migrations.Migration):
]

operations = [
migrations.RemoveField(
migrations.RenameField(
model_name="tender",
name="accept_cocontracting",
old_name="accept_cocontracting",
new_name="_accept_cocontracting",
),
migrations.RemoveField(
migrations.RenameField(
model_name="tender",
name="siae_detail_cocontracting_click_count",
old_name="siae_detail_cocontracting_click_count",
new_name="_siae_detail_cocontracting_click_count",
),
migrations.RemoveField(
migrations.RenameField(
model_name="tendersiae",
name="detail_cocontracting_click_date",
old_name="detail_cocontracting_click_date",
new_name="_detail_cocontracting_click_date",
),
migrations.AddField(
migrations.AlterField(
model_name="tender",
name="_accept_cocontracting",
field=models.BooleanField(default=False, verbose_name="Archivé"),
field=models.BooleanField(default=False, verbose_name="Ouvert à la co-traitance (Archivé)"),
),
migrations.AddField(
migrations.AlterField(
model_name="tender",
name="_siae_detail_cocontracting_click_count",
field=models.IntegerField(default=0, verbose_name="Archivé"),
field=models.IntegerField(
default=0, verbose_name="Nombre de structures ouvertes à la co-traitance (Archivé)"
),
),
migrations.AddField(
migrations.AlterField(
model_name="tendersiae",
name="_detail_cocontracting_click_date",
field=models.DateTimeField(blank=True, null=True, verbose_name="Archivé"),
field=models.DateTimeField(
blank=True, null=True, verbose_name="Date de clic sur Répondre en co-traitance (Archivé)"
),
),
]
10 changes: 7 additions & 3 deletions lemarche/tenders/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ class Tender(models.Model):

response_is_anonymous = models.BooleanField(verbose_name="Je souhaite rester anonyme", blank=False, default=False)
_accept_cocontracting = models.BooleanField(
verbose_name="Archivé",
verbose_name="Ouvert à la co-traitance (Archivé)",
default=False,
)

Expand Down Expand Up @@ -652,7 +652,9 @@ class Tender(models.Model):
siae_detail_contact_click_count = models.IntegerField(
"Nombre de structures intéressées", help_text=RECALCULATED_FIELD_HELP_TEXT, default=0
)
_siae_detail_cocontracting_click_count = models.IntegerField("Archivé", default=0)
_siae_detail_cocontracting_click_count = models.IntegerField(
"Nombre de structures ouvertes à la co-traitance (Archivé)", default=0
)
siae_detail_not_interested_click_count = models.IntegerField(
"Nombre de structures pas intéressées", help_text=RECALCULATED_FIELD_HELP_TEXT, default=0
)
Expand Down Expand Up @@ -1103,7 +1105,9 @@ class TenderSiae(models.Model):
detail_contact_click_date = models.DateTimeField(
verbose_name="Date de clic sur les coordonnées du besoin", blank=True, null=True
)
_detail_cocontracting_click_date = models.DateTimeField(verbose_name="Archivé", blank=True, null=True)
_detail_cocontracting_click_date = models.DateTimeField(
verbose_name="Date de clic sur Répondre en co-traitance (Archivé)", blank=True, null=True
)
detail_not_interested_click_date = models.DateTimeField(
verbose_name="Date de clic sur Pas intéressé", blank=True, null=True
)
Expand Down

0 comments on commit b594678

Please sign in to comment.