This commit is contained in:
j 2016-08-28 13:25:26 +02:00
parent e3f6f05f07
commit f71334ae25

View file

@ -365,6 +365,11 @@ class Item(models.Model):
update_poster = True update_poster = True
if not settings.USE_IMDB: if not settings.USE_IMDB:
self.public_id = ox.toAZ(self.id) self.public_id = ox.toAZ(self.id)
# avoid looking like an ad
if self.id == ox.fromAZ('AD') - 1:
cursor = connection.cursor()
sql = "SELECT nextval('%s_id_seq')" % self._meta.db_table
cursor.execute(sql)
# this does not work if another item without imdbid has the same metadata # this does not work if another item without imdbid has the same metadata
oxdbId = self.oxdb_id() oxdbId = self.oxdb_id()