Add Country column to meeting/NN/proceedings/attendees. Fixes #2228. Commit ready for merge.
- Legacy-Id: 13113
This commit is contained in:
parent
bb13eeefb5
commit
990493f1c4
29
ietf/meeting/migrations/0048_recreate_97_attendees.py
Normal file
29
ietf/meeting/migrations/0048_recreate_97_attendees.py
Normal 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)
|
||||
]
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue