From b5a040764e3b56f8420d44d9d5c2c05ba8154298 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 22 Nov 2011 12:50:36 +0100 Subject: [PATCH] flag invalid ids --- oxdata/movie/models.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/oxdata/movie/models.py b/oxdata/movie/models.py index 651f416..78dc85e 100644 --- a/oxdata/movie/models.py +++ b/oxdata/movie/models.py @@ -52,6 +52,8 @@ class Imdb(models.Model): episodeTitle = models.CharField(max_length=1000, blank=True, default='') episodeYear = models.CharField(max_length=4, blank=True, default='') episodeDirector = models.CharField(max_length=1000, blank=True, default='') + + invalid = models.BooleanField(default=False) def __unicode__(self): return u"%s (%s)" % (self.title, self.imdb) @@ -75,6 +77,9 @@ class Imdb(models.Model): if self.episode < 0: self.episode = None self.save() + elif not self.invalid: + self.invalid = True + self.save() def json(self): j = {}