diff --git a/dashboard/models.py b/dashboard/models.py index fdfc2da..22c896c 100644 --- a/dashboard/models.py +++ b/dashboard/models.py @@ -361,12 +361,12 @@ class Area_code_2020(models.Model): #新闻 class News(models.Model): NEWMEDIA_NEWS_CHOICES = ( - ('政策依据', '政策依据'), - ('基层动态', '基层动态'), - ('通知', '通知'), - ('外省动态', '外省动态'), - ('监测通报', '监测通报'), - ('舆情热点', '舆情热点') + ('0', '政策依据'), + ('1', '基层动态'), + ('2', '通知'), + ('3', '外省动态'), + ('4', '监测通报'), + ('5', '舆情热点') ) id = models.UUIDField('id',primary_key=True,default=uuid.uuid4) type = models.CharField('文章类型',max_length=256,null=True,blank=True,choices=NEWMEDIA_NEWS_CHOICES) diff --git a/dashboard/templates/dashboard/base/header.html b/dashboard/templates/dashboard/base/header.html index 7a5a913..0cfb4cb 100644 --- a/dashboard/templates/dashboard/base/header.html +++ b/dashboard/templates/dashboard/base/header.html @@ -315,11 +315,11 @@
  • -{# {% for u in user.userprofile_set.all %}#} -{##} -{# user-image#} -{# {% endfor %}#} + {# {% for u in user.userprofile_set.all %}#} + {##} + {# user-image#} + {# {% endfor %}#}