forked from ScoDoc/DocScoDoc
Fix: partition_rename error message
This commit is contained in:
parent
ad0cd6236c
commit
66d443944a
@ -1147,7 +1147,7 @@ def partition_set_name(partition_id, partition_name, redirect=1):
|
|||||||
""",
|
""",
|
||||||
{"partition_name": partition_name, "formsemestre_id": formsemestre_id},
|
{"partition_name": partition_name, "formsemestre_id": formsemestre_id},
|
||||||
)
|
)
|
||||||
if len(r) > 1 or (len(r) == 1 and r[0]["partition_id"] != partition_id):
|
if len(r) > 1 or (len(r) == 1 and r[0]["id"] != partition_id):
|
||||||
raise ScoValueError(
|
raise ScoValueError(
|
||||||
"Partition %s déjà existante dans ce semestre !" % partition_name
|
"Partition %s déjà existante dans ce semestre !" % partition_name
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user