Skip to content

Commit

Permalink
Fix value of desc param in filter form (1 instead of "True")
Browse files Browse the repository at this point in the history
  • Loading branch information
hasansezertasan committed Jul 19, 2024
1 parent 2b3059f commit 121ba87
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions flask_admin/templates/tabler/model/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
{% macro filter_form() %}
<form id="filter_form" method="get" action="{{ return_url }}">
{% if sort_column is not none %}<input type="hidden" name="sort" value="{{ sort_column }}">{% endif %}
{% if sort_desc %}<input type="hidden" name="desc" value="{{ sort_desc }}">{% endif %}
{% if sort_desc %}
<input type="hidden" name="desc" value="1">
{% endif %}
{% if search %}<input type="hidden" name="search" value="{{ search }}">{% endif %}
{% if page_size != default_page_size %}<input type="hidden" name="page_size" value="{{ page_size }}">{% endif %}
<table class="table table-responsive table-bordered table-hover filters">
Expand All @@ -73,7 +75,9 @@
<input type="hidden" name="{{ arg_name }}" value="{{ arg_value }}">
{% endfor %}
{% if sort_column is not none %}<input type="hidden" name="sort" value="{{ sort_column }}">{% endif %}
{% if sort_desc %}<input type="hidden" name="desc" value="{{ sort_desc }}">{% endif %}
{% if sort_desc %}
<input type="hidden" name="desc" value="1">
{% endif %}
<div class="input-group">
<input class="form-control {{ input_class }}"
size="30"
Expand Down

0 comments on commit 121ba87

Please sign in to comment.