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
!128
Místa: hledání a další drobná vylepšení
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Místa: hledání a další drobná vylepšení
mj/places
into
devel
Overview
22
Commits
10
Changes
1
2 unresolved threads
Hide all comments
Merged
Martin Mareš
requested to merge
mj/places
into
devel
2 years ago
Overview
22
Commits
10
Changes
1
2 unresolved threads
Hide all comments
0
0
Merge request reports
Viewing commit
21ff7251
Prev
Next
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
21ff7251
Kosmetika: Raději než "level" říkejme "úroveň"
· 21ff7251
Martin Mareš
authored
2 years ago
mo/web/org_place.py
+
1
−
1
View file @ 21ff7251
Edit in single-file editor
Open in Web IDE
Show full file
@@ -224,7 +224,7 @@ def org_place_move(id: int):
if
not
rr
.
can_edit_place
(
new_parent
):
search_error
=
'
Nemáte právo k editaci vybraného nadřazeného místa, přesun nelze uskutečnit
'
elif
(
new_parent
.
level
+
1
)
not
in
levels
:
search_error
=
f
'
Toto místo (
{
place
.
type_name
()
}
) nelze přemístit pod vybrané místo (
{
new_parent
.
type_name
()
}
), dostalo by se na nepovolen
ý le
ve
l
'
search_error
=
f
'
Toto místo (
{
place
.
type_name
()
}
) nelze přemístit pod vybrané místo (
{
new_parent
.
type_name
()
}
), dostalo by se na nepovolen
ou úro
ve
ň
'
elif
new_parent
.
place_id
==
place
.
parent
:
search_error
=
'
Žádná změna, místo je zde již umístěno
'
elif
form
.
move
.
data
:
Loading