forked from ScoDoc/ScoDoc
Fix: edition module
This commit is contained in:
parent
c0494d8d71
commit
40f823ee7c
@ -551,7 +551,11 @@ def module_edit(module_id=None):
|
|||||||
# ne propose pas SAE et Ressources, sauf si déjà de ce type...
|
# ne propose pas SAE et Ressources, sauf si déjà de ce type...
|
||||||
module_types = (
|
module_types = (
|
||||||
set(scu.ModuleType) - {scu.ModuleType.RESSOURCE, scu.ModuleType.SAE}
|
set(scu.ModuleType) - {scu.ModuleType.RESSOURCE, scu.ModuleType.SAE}
|
||||||
) | {a_module.module_type or scu.ModuleType.STANDARD}
|
) | {
|
||||||
|
scu.ModuleType(a_module.module_type)
|
||||||
|
if a_module.module_type
|
||||||
|
else scu.ModuleType.STANDARD
|
||||||
|
}
|
||||||
|
|
||||||
descr = [
|
descr = [
|
||||||
(
|
(
|
||||||
|
Loading…
Reference in New Issue
Block a user