Skip to content

Commit

Permalink
admin: sort financial annex
Browse files Browse the repository at this point in the history
  • Loading branch information
xavfernandez committed Jul 16, 2024
1 parent cc70022 commit a781958
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion itou/companies/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ class FinancialAnnexesInline(ItouTabularInline):
readonly_fields = ("number", "state", "start_at", "end_at", "is_active")
can_delete = False

ordering = ("-number",)
ordering = (
"-end_at",
"-start_at",
"-number",
)

@admin.display(boolean=True, description="active")
def is_active(self, obj):
Expand Down

0 comments on commit a781958

Please sign in to comment.