This commit is contained in:
Bob 2020-09-13 14:20:15 +08:00
parent a700ea40ec
commit 6bca33946e
2 changed files with 14 additions and 14 deletions

View File

@ -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)

View File

@ -352,9 +352,9 @@
</li>
<li class="chat-toggle-wrapper">
{# <a href="#" data-toggle="chatbar" class="toggle_chat">#}
{# {% for i in user.userprofile_set.all %}#}
{% for i in user.userprofile_set.all %}
<span>{{ i.name }}</span>
{# {% endfor %}#}
{% endfor %}
{# <i class="fa fa-comments"></i>#}
{# <span class="badge badge-warning">9</span>#}
{# </a>#}