Skip to content
Snippets Groups Projects
Commit 4d0e08da authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

fields.Place: nastaven placeholder="Kód"

parent a3e7b747
No related branches found
No related tags found
1 merge request!92Používání mo.web.fields
...@@ -113,6 +113,7 @@ class LastName(Name): ...@@ -113,6 +113,7 @@ class LastName(Name):
class Place(wtforms.StringField): class Place(wtforms.StringField):
def __init__(self, label="Místo", validators=None, **kwargs): def __init__(self, label="Místo", validators=None, **kwargs):
super().__init__(label, validators, **kwargs) super().__init__(label, validators, **kwargs)
self.render_kw = {"placeholder": "Kód"}
place_loaded: bool = False place_loaded: bool = False
place: Optional[db.Place] = None place: Optional[db.Place] = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment