Skip to content

Commit

Permalink
Tender admin: collapse 3 sections to reduce space
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Feb 19, 2024
1 parent 949cb4c commit 91b59c7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lemarche/tenders/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ class TenderAdmin(FieldsetsInlineMixin, admin.ModelAdmin):
),
},
),
("Partenaire APProch", {"fields": ("is_partner_approch", "partner_approch_id")}),
("Partenaire APProch", {"classes": ["collapse"], "fields": ("is_partner_approch", "partner_approch_id")}),
(
"Structures",
{
Expand Down Expand Up @@ -357,6 +357,7 @@ class TenderAdmin(FieldsetsInlineMixin, admin.ModelAdmin):
(
"Stats",
{
"classes": ["collapse"],
"fields": (
"siae_list_last_seen_date",
"source",
Expand All @@ -365,8 +366,8 @@ class TenderAdmin(FieldsetsInlineMixin, admin.ModelAdmin):
),
},
),
("Si importé", {"fields": ("import_raw_object_display",)}),
("Dates", {"fields": ("created_at", "updated_at")}),
("Si importé", {"classes": ["collapse"], "fields": ("import_raw_object_display",)}),
("Dates", {"classes": ["collapse"], "fields": ("created_at", "updated_at")}),
]

change_form_template = "tenders/admin_change_form.html"
Expand Down

0 comments on commit 91b59c7

Please sign in to comment.