Remove library after last release is deleted. fix #179

This commit is contained in:
Ruud
2012-04-30 19:48:51 +02:00
parent 398ceed34b
commit b82d14f32d
+1 -1
View File
@@ -41,7 +41,7 @@ class Movie(Entity):
last_edit = Field(Integer, default = lambda: int(time.time()))
library = ManyToOne('Library')
library = ManyToOne('Library', cascade = 'delete, delete-orphan', single_parent = True)
status = ManyToOne('Status')
profile = ManyToOne('Profile')
releases = OneToMany('Release', cascade = 'all, delete-orphan')