From c1cd54023afc6a2953b9f5dbc72c7119b5792eeb Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 23 Nov 2010 16:22:16 +0100 Subject: [PATCH] add wikipedia to Person, Event and Place --- pandora/item/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index ec628655..ab77755f 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -906,8 +906,8 @@ class Person(models.Model): #FIXME: how to deal with aliases aliases = fields.TupleField(default=[]) - imdbId = models.CharField(max_length=7, blank=True) + wikipediaId = models.CharField(max_length=1000, blank=True) class Meta: ordering = ('name_sort', ) @@ -947,6 +947,7 @@ class Place(models.Model): name_sort = models.CharField(max_length=200) manual = models.BooleanField(default=False) items = models.ManyToManyField(Item, related_name='places') + wikipediaId = models.CharField(max_length=1000, blank=True) #FIXME: how to deal with aliases aliases = fields.TupleField(default=[]) @@ -989,6 +990,7 @@ class Event(models.Model): ''' name = models.CharField(null=True, max_length=255, unique=True) name_sort = models.CharField(null=True, max_length=255, unique=True) + wikipediaId = models.CharField(max_length=1000, blank=True) class Meta: ordering = ('name_sort', )