--- /dev/null
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('contributors', '0002_hide_email'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='contributor',
+ name='email',
+ field=models.EmailField(null=False, blank=True),
+ ),
+ ]
ctype = models.ForeignKey(ContributorType)
lastname = models.CharField(max_length=100, null=False, blank=False)
firstname = models.CharField(max_length=100, null=False, blank=False)
- email = models.EmailField(null=False, blank=False)
+ email = models.EmailField(null=False, blank=True)
company = models.CharField(max_length=100, null=True, blank=True)
companyurl = models.URLField(max_length=100, null=True, blank=True, verbose_name='Company URL')
location = models.CharField(max_length=100, null=True, blank=True)
{%for c in t.contributor_set.all %}
{%if t.detailed%}
<tr{%if forloop.last%} class="lastrow"{%endif%}>
- <td class="colFirst">{{c.firstname}} {{c.lastname}} {%if t.showemail%}({{c.email|hidemail}}){%endif%}
+ <td class="colFirst">{{c.firstname}} {{c.lastname}} {%if t.showemail and c.email%}({{c.email|hidemail}}){%endif%}
{%if c.company %}<br/><a href="{{c.companyurl}}">{{c.company}}</a>{%endif%}
<br/>{{c.location}}</td>
<td class="colLast">{{c.contribution}}</td>