Commit 22dfbb30 authored by luxcem's avatar luxcem

fixes a field in representatives model

parent 66cbcf4c
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('representatives', '0014_merge'),
]
operations = [
migrations.AlterField(
model_name='address',
name='representative',
field=models.ForeignKey(to='representatives.Representative'),
preserve_default=True,
),
migrations.AlterField(
model_name='email',
name='representative',
field=models.ForeignKey(to='representatives.Representative'),
preserve_default=True,
),
migrations.AlterField(
model_name='mandate',
name='group',
field=models.ForeignKey(to='representatives.Group', null=True),
preserve_default=True,
),
migrations.AlterField(
model_name='mandate',
name='representative',
field=models.ForeignKey(related_name='mandates', to='representatives.Representative'),
preserve_default=True,
),
migrations.AlterField(
model_name='phone',
name='representative',
field=models.ForeignKey(to='representatives.Representative'),
preserve_default=True,
),
migrations.AlterField(
model_name='website',
name='representative',
field=models.ForeignKey(to='representatives.Representative'),
preserve_default=True,
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('representatives', '0015_auto_20150603_1216'),
]
operations = [
migrations.AlterField(
model_name='representative',
name='remote_id',
field=models.CharField(max_length=255, unique=True, null=True, blank=True),
preserve_default=True,
),
]
......@@ -39,7 +39,7 @@ class Representative(models.Model):
)
slug = models.SlugField(max_length=100)
remote_id = models.CharField(max_length=255, blank=True, null=True)
remote_id = models.CharField(max_length=255, blank=True, null=True, unique=True)
first_name = models.CharField(max_length=255, blank=True, null=True)
last_name = models.CharField(max_length=255, blank=True, null=True)
full_name = models.CharField(max_length=255)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment