From 62503b1605ec41c01060655ca8bc5aae76dd4cce Mon Sep 17 00:00:00 2001 From: xieshen <1397910458@qq.com> Date: Sat, 17 Oct 2020 17:12:56 +0800 Subject: [PATCH] =?UTF-8?q?#=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboard/models.py | 2 + dashboard/templates/dashboard/base/left.html | 2 + dashboard/urls.py | 3 +- dashboard/views.py | 22 ++ .../newmedia-management-create-douyin.html | 71 +++++- .../newmedia-management-create-qita.html | 75 +++++- .../newmedia-management-create-toutiao.html | 72 +++++- .../newmedia-management-create-weibo.html | 75 +++++- .../newmedia-management-create-weixin.html | 74 +++++- .../newmedia-management-edit-douyin.html | 2 - .../newmedia-management-edit-qita.html | 2 - .../newmedia-management-edit-toutiao.html | 2 - .../newmedia-management-edit-weibo.html | 2 - .../newmedia-management-edit-weixin.html | 2 - .../newmedia-management-update-douyin.html | 79 +++++- .../newmedia-management-update-qita.html | 79 +++++- .../newmedia-management-update-toutiao.html | 79 +++++- .../newmedia-management-update-weibo.html | 79 +++++- .../newmedia-management-update-weixin.html | 77 +++++- .../management/news-management-create.html | 4 +- .../management/news-management-detail.html | 7 +- .../organization-management-update.html | 42 ++-- .../management/organization-management.html | 4 +- .../templates/management/user-management.html | 4 +- management/views.py | 238 +++++++++++++----- 25 files changed, 920 insertions(+), 178 deletions(-) diff --git a/dashboard/models.py b/dashboard/models.py index c9fab6f..d6d4bfd 100644 --- a/dashboard/models.py +++ b/dashboard/models.py @@ -144,6 +144,8 @@ class Userprofile(models.Model): Organization, on_delete=models.CASCADE, null=True, blank=True) # 用户状态:注册进来默认为0,为未审核状态,审核后status=1 status = models.IntegerField('用户状态', null=True, blank=True, default=0) + #20201017新增字段(职位) + zhiwei = models.CharField('职位',max_length=256,null=True,blank=True) created = models.DateTimeField('创建时间', auto_now_add=True) updated = models.DateTimeField('更新时间', auto_now=True) diff --git a/dashboard/templates/dashboard/base/left.html b/dashboard/templates/dashboard/base/left.html index 4a478c2..8036c4e 100644 --- a/dashboard/templates/dashboard/base/left.html +++ b/dashboard/templates/dashboard/base/left.html @@ -99,6 +99,7 @@ 新媒体管理 + {# NEW#}