Add categories to settings

This commit is contained in:
Ruud
2013-07-21 19:12:53 +02:00
parent 1ea0d3bd8b
commit dd67239b6e
10 changed files with 557 additions and 37 deletions
+12 -13
View File
@@ -213,15 +213,21 @@ class Category(Entity):
label = Field(Unicode(50))
order = Field(Integer, default = 0, index = True)
core = Field(Boolean, default = False)
hide = Field(Boolean, default = False)
movie = OneToMany('Movie')
path = Field(Unicode(255))
required = Field(Unicode(255))
preferred = Field(Unicode(255))
ignored = Field(Unicode(255))
movie = OneToMany('Movie')
destination = ManyToOne('Destination')
class Destination(Entity):
""""""
path = Field(Unicode(255))
category = OneToMany('Category')
class ProfileType(Entity):
""""""
@@ -288,13 +294,6 @@ class Notification(Entity):
data = Field(JsonType)
class Folder(Entity):
"""Renamer destination folders."""
path = Field(Unicode(255))
label = Field(Unicode(255))
class Properties(Entity):
identifier = Field(String(50), index = True)