From 33b30301fbad6a62d78b64287b4a211c880bb33f Mon Sep 17 00:00:00 2001 From: alshain Date: Fri, 11 Feb 2011 01:00:24 +0100 Subject: [PATCH] Adds identifier, name not nullable in FileType. --- couchpotato/model.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/couchpotato/model.py b/couchpotato/model.py index 2b02c3b..cc2ef43 100644 --- a/couchpotato/model.py +++ b/couchpotato/model.py @@ -41,5 +41,6 @@ class File(Entity): class FileType(Entity): """Types could be trailer, subtitle, movie, partial movie etc.""" - name = Field(UnicodeString(255)) + identifier = Field(String(20), unique=True) + name = Field(UnicodeString(255), nullable=False) files = OneToMany('File')