Commit 45d1781e by liuyingying

不改了不改了

parent 9ea59919
......@@ -12,7 +12,7 @@ class User(models.Model):
name = models.CharField(max_length=50)
pwd = 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)
isCurrent = models.IntegerField(default=1)
identity = models.CharField(max_length=1, default='0')
......@@ -22,7 +22,6 @@ class User(models.Model):
personal_website = models.CharField(max_length=1000, default='')
mailAddress = models.CharField(max_length=100, default='mail@example.com')
def is_admin(self):
return self.identity
......
......@@ -11,7 +11,7 @@
<body>
<div id="resume">
<div id="top">
<p>{{ user.name }}</p>
<p>{{ user.name_eng }}</p>
<div>
{% if user.mailAddress %}
<span>{{ user.mailAddress }} </span>
......@@ -22,6 +22,7 @@
</div>
</div>
<div class="wrap">
{% if publication_year_list.items %}
<div class="section">
<span>PUBLICATIONS</span>
{% for year,publications in publication_year_list.items %}
......@@ -31,7 +32,6 @@
{{ year }}
</span>
</div>
{% if publications %}
{% for publication in publications %}
<ul>
<li>
......@@ -45,10 +45,10 @@
</li>
</ul>
{% endfor %}
{% endif %}
</div>
{% endfor %}
</div>
{% endif %}
<div class="section">
<span>MY-CVE</span>
{% 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