From ba2bee22a65fe2d2fac408a63781e54c46516a7e Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sat, 15 Dec 2012 12:59:27 +0100 Subject: Allow album's artist to be null. --- db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db.py b/db.py index 248d56a..00ce023 100644 --- a/db.py +++ b/db.py @@ -82,7 +82,7 @@ class Album(Base): id = Column(Integer, primary_key = True) name = Column(String, nullable = False, index = True) - artist_id = Column(Integer, ForeignKey('artists.id'), nullable = False) + artist_id = Column(Integer, ForeignKey('artists.id')) artist = relationship(Artist, backref = backref('albums', order_by = name)) -- cgit v1.2.3