Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odevzdávací Systém MO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Odevzdávací Systém MO
Merge requests
!92
Používání mo.web.fields
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Používání mo.web.fields
jk/fields
into
devel
Overview
16
Commits
20
Changes
1
Merged
Jiří Kalvoda
requested to merge
jk/fields
into
devel
3 years ago
Overview
16
Commits
20
Changes
1
0
0
Merge request reports
Viewing commit
4d0e08da
Prev
Next
Show latest version
1 file
+
1
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
4d0e08da
fields.Place: nastaven placeholder="Kód"
· 4d0e08da
Jiří Kalvoda
authored
3 years ago
mo/web/fields.py
+
1
−
0
View file @ 4d0e08da
Edit in single-file editor
Open in Web IDE
Show full file
@@ -113,6 +113,7 @@ class LastName(Name):
class
Place
(
wtforms
.
StringField
):
def
__init__
(
self
,
label
=
"
Místo
"
,
validators
=
None
,
**
kwargs
):
super
().
__init__
(
label
,
validators
,
**
kwargs
)
self
.
render_kw
=
{
"
placeholder
"
:
"
Kód
"
}
place_loaded
:
bool
=
False
place
:
Optional
[
db
.
Place
]
=
None
Loading