forked from 0x2620/pandora
imdb ids can be longer
This commit is contained in:
parent
b1e6e37b7e
commit
7a539b37b8
4 changed files with 42 additions and 2 deletions
20
pandora/person/migrations/0002_auto_20190723_1446.py
Normal file
20
pandora/person/migrations/0002_auto_20190723_1446.py
Normal 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),
|
||||||
|
),
|
||||||
|
]
|
|
@ -38,7 +38,7 @@ class Person(models.Model):
|
||||||
#FIXME: how to deal with aliases
|
#FIXME: how to deal with aliases
|
||||||
aliases = fields.TupleField(default=[])
|
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)
|
wikipediaId = models.CharField(max_length=1000, blank=True)
|
||||||
|
|
||||||
objects = managers.PersonManager()
|
objects = managers.PersonManager()
|
||||||
|
|
20
pandora/title/migrations/0002_auto_20190723_1446.py
Normal file
20
pandora/title/migrations/0002_auto_20190723_1446.py
Normal 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),
|
||||||
|
),
|
||||||
|
]
|
|
@ -32,7 +32,7 @@ class Title(models.Model):
|
||||||
sortsorttitle = models.CharField(max_length=1000)
|
sortsorttitle = models.CharField(max_length=1000)
|
||||||
edited = models.BooleanField(default=False)
|
edited = models.BooleanField(default=False)
|
||||||
|
|
||||||
imdbId = models.CharField(max_length=7, blank=True)
|
imdbId = models.CharField(max_length=16, blank=True)
|
||||||
|
|
||||||
objects = managers.TitleManager()
|
objects = managers.TitleManager()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue