Mr Duhaz 3 months ago
parent
commit
3f9be859c7
2 changed files with 6 additions and 5 deletions
  1. 1 0
      .gitignore
  2. 5 5
      views.py

+ 1 - 0
.gitignore

@@ -98,3 +98,4 @@ migrations/__pycache__/0023_auto_20240730_2056.cpython-39.pyc
 migrations/__pycache__/0024_auto_20240730_2235.cpython-39.pyc
 migrations/__pycache__/0024_auto_20240730_2235.cpython-312.pyc
 migrations/__pycache__/0025_auto_20240730_2241.cpython-39.pyc
+migrations/__pycache__/0025_auto_20240730_2241.cpython-312.pyc

+ 5 - 5
views.py

@@ -162,15 +162,15 @@ def gen_page_sys(p_titre_slugify):
 	page.c_menulogin = get_data_value('login-menu')
 	page.c_includ_rp = get_data_value('includ-right-panel')
 	if page.c_card_mp == "non":
-		page.c_card_mp = False
-	elif page.p_c_card_mp == "oui":
-		page.c_card_mp = True
+		page.c_card_mp = "False"
+	elif page.c_card_mp == "oui":
+		page.c_card_mp = "True"
 	else :
 		page.c_card_mp = get_data_value('card-main-panel')
 	if page.c_card_rp == "non":
-		page.c_card_rp = False
+		page.c_card_rp = "False"
 	elif page.c_card_rp == "oui":
-		page.c_card_rp = True
+		page.c_card_rp = "True"
 	else :
 		page.c_card_rp = get_data_value('card-right-panel')