Skip to content

Commit 990493f

Browse files
committed
Add Country column to meeting/NN/proceedings/attendees. Fixes ietf-tools#2228. Commit ready for merge.
- Legacy-Id: 13113
1 parent bb13eee commit 990493f

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# -*- coding: utf-8 -*-
2+
# Generated by Django 1.10.6 on 2017-03-25 12:01
3+
from __future__ import unicode_literals
4+
5+
from django.db import migrations
6+
from ietf.meeting.utils import create_proceedings_templates
7+
8+
def forward(apps, schema_editor):
9+
Meeting = apps.get_model('meeting', 'Meeting')
10+
DBTemplate = apps.get_model('dbtemplate', 'DBTemplate')
11+
12+
meeting = Meeting.objects.get(number=97)
13+
template = DBTemplate.objects.get(path='/meeting/proceedings/97/attendees.html')
14+
template.delete()
15+
create_proceedings_templates(meeting)
16+
17+
def backward(apps, schema_editor):
18+
pass
19+
20+
21+
class Migration(migrations.Migration):
22+
23+
dependencies = [
24+
('meeting', '0047_import_shared_audio_files'),
25+
]
26+
27+
operations = [
28+
migrations.RunPython(forward, backward)
29+
]

ietf/templates/meeting/proceedings_attendees_table.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<th>Last Name</th>
55
<th>First Name</th>
66
<th>Organization</th>
7+
<th>Country</th>
78
</tr>
89
</thead>
910
<tbody>
@@ -12,6 +13,7 @@
1213
<td>{{ attendee.LastName }}</td>
1314
<td>{{ attendee.FirstName }}</td>
1415
<td>{{ attendee.Company }}</td>
16+
<td>{{ attendee.Country }}</td>
1517
</tr>
1618
{% endfor %}
1719
</tbody>

0 commit comments

Comments
 (0)