imdb ids can be longer

This commit is contained in:
j 2019-07-23 16:47:22 +02:00
parent b1e6e37b7e
commit 7a539b37b8
4 changed files with 42 additions and 2 deletions

View File

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.22 on 2019-07-23 14:46
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('person', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='person',
name='imdbId',
field=models.CharField(blank=True, max_length=16),
),
]

View File

@ -38,7 +38,7 @@ class Person(models.Model):
#FIXME: how to deal with aliases
aliases = fields.TupleField(default=[])
imdbId = models.CharField(max_length=7, blank=True)
imdbId = models.CharField(max_length=16, blank=True)
wikipediaId = models.CharField(max_length=1000, blank=True)
objects = managers.PersonManager()

View File

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.22 on 2019-07-23 14:46
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('title', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='title',
name='imdbId',
field=models.CharField(blank=True, max_length=16),
),
]

View File

@ -32,7 +32,7 @@ class Title(models.Model):
sortsorttitle = models.CharField(max_length=1000)
edited = models.BooleanField(default=False)
imdbId = models.CharField(max_length=7, blank=True)
imdbId = models.CharField(max_length=16, blank=True)
objects = managers.TitleManager()