Skip to content
Snippets Groups Projects
Commit 8609c921 authored by Martin Mareš's avatar Martin Mareš
Browse files

PagerForm nepotřebuje submit

Všichni jeho potomci si submit definují vlastní.
parent 333dcf2b
No related branches found
No related tags found
1 merge request!138Zpracování nedoručenek
...@@ -21,7 +21,6 @@ class PagerForm(FlaskForm): ...@@ -21,7 +21,6 @@ class PagerForm(FlaskForm):
offset = wtforms.IntegerField() offset = wtforms.IntegerField()
next = wtforms.SubmitField("Další") next = wtforms.SubmitField("Další")
previous = wtforms.SubmitField("Předchozí") previous = wtforms.SubmitField("Předchozí")
submit = wtforms.SubmitField("Filtrovat")
def apply_limits(self, query: Query, pagesize: int = 50) -> Tuple[int, Query]: def apply_limits(self, query: Query, pagesize: int = 50) -> Tuple[int, Query]:
count = db.get_count(query) count = db.get_count(query)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment