From b6c4e451b4969595a58452385e45dfaa5fbb31b6 Mon Sep 17 00:00:00 2001 From: alshain Date: Fri, 11 Feb 2011 00:59:27 +0100 Subject: [PATCH] Make size not nullable on File. --- couchpotato/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/model.py b/couchpotato/model.py index 1d166143..2b02c3b0 100644 --- a/couchpotato/model.py +++ b/couchpotato/model.py @@ -35,7 +35,7 @@ class File(Entity): part = Field(Integer) release = ManyToOne('Release') # Let's remember the size so we know about offline media. - size = Field(Integer) + size = Field(Integer, nullable=False) type = ManyToOne('FileType')