From 107606ce659145e7a63945c542bc5f5b14b9fa10 Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 8 Oct 2013 09:57:17 +0200 Subject: [PATCH] Add tv branch column aliases --- couchpotato/core/settings/model.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/couchpotato/core/settings/model.py b/couchpotato/core/settings/model.py index f39544bc..8601c2b4 100644 --- a/couchpotato/core/settings/model.py +++ b/couchpotato/core/settings/model.py @@ -78,6 +78,7 @@ class Movie(Entity): such as trailers, nfo, thumbnails""" last_edit = Field(Integer, default = lambda: int(time.time()), index = True) + type = 'movie' # Compat tv branch library = ManyToOne('Library', cascade = 'delete, delete-orphan', single_parent = True) status = ManyToOne('Status') @@ -86,6 +87,7 @@ class Movie(Entity): releases = OneToMany('Release', cascade = 'all, delete-orphan') files = ManyToMany('File', cascade = 'all, delete-orphan', single_parent = True) +Media = Movie # Compat tv branch class Library(Entity): """"""