@@ -29,53 +31,53 @@
+{% endwith %}
\ No newline at end of file
diff --git a/dashboard/templatetags/startswith.py b/dashboard/templatetags/startswith.py
new file mode 100644
index 0000000..9f1f5fd
--- /dev/null
+++ b/dashboard/templatetags/startswith.py
@@ -0,0 +1,10 @@
+from django import template
+
+register = template.Library()
+
+
+@register.filter(name='startswith')
+def startswith(text, starts):
+ if isinstance(text, str):
+ return text.startswith(starts)
+ return False
diff --git a/dashboard/views.py b/dashboard/views.py
index 9005d4b..95804da 100644
--- a/dashboard/views.py
+++ b/dashboard/views.py
@@ -172,7 +172,7 @@ def register(request):
def get_province(request):
# 省
- province = Area_code_2020.objects.filter(level=1)
+ province = Area_code_2020.objects.filter(level=1,name='甘肃省')
res = []
for i in province:
res.append([i.code, i.name, i.level, i.pcode])
diff --git a/management/templates/management/add-group-admin-and-user.html b/management/templates/management/add-group-admin-and-user.html
index c5a2762..caf205c 100644
--- a/management/templates/management/add-group-admin-and-user.html
+++ b/management/templates/management/add-group-admin-and-user.html
@@ -41,7 +41,8 @@
-
-
- +
- 新媒体舆情 {#
- #} -
- +
- 时效性监测 -{# #} + {# #} -{# #} + {# #} -
- +
- 错别字监测 -
- +
- 敏感词监测 -
- +
- 评论互动监测 -
- +
- 监测报告 -
- +
- 矩阵管理 @@ -83,47 +85,47 @@ -
- +
- 新媒体管理 - NEW +{# NEW#} -
- +
- 主体单位管理 - 4 +{# 0#} -
- +
- 新闻管理 @@ -131,20 +133,20 @@ -
- +
- 用户管理 -
- +
- 系统设置 @@ -200,3 +202,4 @@