Skip to content

Commit 5f51222

Browse files
committed
Added a missing migration and updated nomcom.resources to match model changes.
- Legacy-Id: 15465
1 parent 4fba531 commit 5f51222

2 files changed

Lines changed: 29 additions & 1 deletion

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# -*- coding: utf-8 -*-
2+
# Generated by Django 1.11.15 on 2018-09-18 05:50
3+
from __future__ import unicode_literals
4+
5+
from django.conf import settings
6+
from django.db import migrations
7+
import django.db.models.deletion
8+
import ietf.utils.models
9+
10+
11+
class Migration(migrations.Migration):
12+
13+
dependencies = [
14+
('nomcom', '0001_initial'),
15+
]
16+
17+
operations = [
18+
migrations.AlterField(
19+
model_name='feedback',
20+
name='user',
21+
field=ietf.utils.models.ForeignKey(blank=True, editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL),
22+
),
23+
migrations.AlterField(
24+
model_name='nomination',
25+
name='user',
26+
field=ietf.utils.models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL),
27+
),
28+
]

ietf/nomcom/resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class NominationResource(ModelResource):
135135
position = ToOneField(PositionResource, 'position')
136136
nominee = ToOneField(NomineeResource, 'nominee')
137137
comments = ToOneField(FeedbackResource, 'comments')
138-
user = ToOneField(UserResource, 'user')
138+
user = ToOneField(UserResource, 'user', null=True)
139139
class Meta:
140140
cache = SimpleCache()
141141
queryset = Nomination.objects.all()

0 commit comments

Comments
 (0)