Commit 45d1781e by liuyingying

不改了不改了

parent 9ea59919
...@@ -12,7 +12,7 @@ class User(models.Model): ...@@ -12,7 +12,7 @@ class User(models.Model):
name = models.CharField(max_length=50) name = models.CharField(max_length=50)
pwd = models.CharField(max_length=100) pwd = models.CharField(max_length=100)
name_hanzi = models.CharField(max_length=100) name_hanzi = models.CharField(max_length=100)
name_eng = models.CharField(max_length=100, default=name) name_eng = models.CharField(max_length=100, default='')
member_type = models.IntegerField(default=2) member_type = models.IntegerField(default=2)
isCurrent = models.IntegerField(default=1) isCurrent = models.IntegerField(default=1)
identity = models.CharField(max_length=1, default='0') identity = models.CharField(max_length=1, default='0')
...@@ -22,7 +22,6 @@ class User(models.Model): ...@@ -22,7 +22,6 @@ class User(models.Model):
personal_website = models.CharField(max_length=1000, default='') personal_website = models.CharField(max_length=1000, default='')
mailAddress = models.CharField(max_length=100, default='mail@example.com') mailAddress = models.CharField(max_length=100, default='mail@example.com')
def is_admin(self): def is_admin(self):
return self.identity return self.identity
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<body> <body>
<div id="resume"> <div id="resume">
<div id="top"> <div id="top">
<p>{{ user.name }}</p> <p>{{ user.name_eng }}</p>
<div> <div>
{% if user.mailAddress %} {% if user.mailAddress %}
<span>{{ user.mailAddress }} </span> <span>{{ user.mailAddress }} </span>
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
</div> </div>
</div> </div>
<div class="wrap"> <div class="wrap">
{% if publication_year_list.items %}
<div class="section"> <div class="section">
<span>PUBLICATIONS</span> <span>PUBLICATIONS</span>
{% for year,publications in publication_year_list.items %} {% for year,publications in publication_year_list.items %}
...@@ -31,7 +32,6 @@ ...@@ -31,7 +32,6 @@
{{ year }} {{ year }}
</span> </span>
</div> </div>
{% if publications %}
{% for publication in publications %} {% for publication in publications %}
<ul> <ul>
<li> <li>
...@@ -45,10 +45,10 @@ ...@@ -45,10 +45,10 @@
</li> </li>
</ul> </ul>
{% endfor %} {% endfor %}
{% endif %}
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
{% endif %}
<div class="section"> <div class="section">
<span>MY-CVE</span> <span>MY-CVE</span>
{% for year, cves in cve_year_list.items %} {% for year, cves in cve_year_list.items %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment