Add Country column to meeting/NN/proceedings/attendees. Fixes #2228. Commit ready for merge.

- Legacy-Id: 13113
This commit is contained in:
Ryan Cross 2017-03-25 19:20:34 +00:00
parent bb13eeefb5
commit 990493f1c4
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-25 12:01
from __future__ import unicode_literals
from django.db import migrations
from ietf.meeting.utils import create_proceedings_templates
def forward(apps, schema_editor):
Meeting = apps.get_model('meeting', 'Meeting')
DBTemplate = apps.get_model('dbtemplate', 'DBTemplate')
meeting = Meeting.objects.get(number=97)
template = DBTemplate.objects.get(path='/meeting/proceedings/97/attendees.html')
template.delete()
create_proceedings_templates(meeting)
def backward(apps, schema_editor):
pass
class Migration(migrations.Migration):
dependencies = [
('meeting', '0047_import_shared_audio_files'),
]
operations = [
migrations.RunPython(forward, backward)
]

View file

@ -4,6 +4,7 @@
<th>Last Name</th>
<th>First Name</th>
<th>Organization</th>
<th>Country</th>
</tr>
</thead>
<tbody>
@ -12,6 +13,7 @@
<td>{{ attendee.LastName }}</td>
<td>{{ attendee.FirstName }}</td>
<td>{{ attendee.Company }}</td>
<td>{{ attendee.Country }}</td>
</tr>
{% endfor %}
</tbody>