Skip to content

Commit

Permalink
Move marche_benefits to Stats section
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Feb 19, 2024
1 parent 91b59c7 commit 7beb581
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions lemarche/tenders/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,12 +336,7 @@ class TenderAdmin(FieldsetsInlineMixin, admin.ModelAdmin):
),
(
"Utilité du marché de l'inclusion",
{
"fields": (
"scale_marche_useless",
"marche_benefits",
)
},
{"fields": ("scale_marche_useless",)},
),
(
"Status",
Expand All @@ -359,6 +354,7 @@ class TenderAdmin(FieldsetsInlineMixin, admin.ModelAdmin):
{
"classes": ["collapse"],
"fields": (
"marche_benefits",
"siae_list_last_seen_date",
"source",
"logs_display",
Expand Down
2 changes: 1 addition & 1 deletion lemarche/tenders/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ class Tender(models.Model):
"created_at",
"updated_at",
]
FIELDS_STATS = FIELDS_STATS_COUNT + FIELDS_STATS_TIMESTAMPS + []
FIELDS_STATS = FIELDS_STATS_COUNT + FIELDS_STATS_TIMESTAMPS + ["marche_benefits"]
READONLY_FIELDS = FIELDS_SURVEY_TRANSACTIONED + FIELDS_STATS

# used in templates
Expand Down

0 comments on commit 7beb581

Please sign in to comment.