From 02d1998f6c8770e096140b48eeaa4d9f269d421b Mon Sep 17 00:00:00 2001 From: ilearnit Date: Thu, 28 Jun 2018 17:13:46 +0800 Subject: [PATCH] Delete all department fields in the old version of the web page --- .../templates/profile/set_profile.html | 7 +-- .../templates/profile/user_profile.html | 6 --- seahub/templates/sysadmin/sys_useradmin.html | 4 -- seahub/templates/sysadmin/userinfo.html | 49 ------------------- seahub/views/sysadmin.py | 17 ++----- 5 files changed, 5 insertions(+), 78 deletions(-) diff --git a/seahub/profile/templates/profile/set_profile.html b/seahub/profile/templates/profile/set_profile.html index a4c64badec..8e4e34a2f9 100644 --- a/seahub/profile/templates/profile/set_profile.html +++ b/seahub/profile/templates/profile/set_profile.html @@ -64,12 +64,7 @@
{% endif %} - {% if form.department and form.telephone %} - - {% for error in form.department.errors %} - {{ error|escape }} - {% endfor %} -
+ {% if form.telephone %} {% for error in form.telephone.errors %} {{ error|escape }} diff --git a/seahub/profile/templates/profile/user_profile.html b/seahub/profile/templates/profile/user_profile.html index 91ec088141..ae7e68adc9 100644 --- a/seahub/profile/templates/profile/user_profile.html +++ b/seahub/profile/templates/profile/user_profile.html @@ -11,12 +11,6 @@

{{ nickname }}