Browse Source

Changes File model.

pull/1/merge
alshain 14 years ago
parent
commit
ce5a91eaa7
  1. 5
      couchpotato/model.py

5
couchpotato/model.py

@ -29,7 +29,10 @@ class Release(Entity):
class File(Entity):
"""File that belongs to a release."""
path = Field(UnicodeString(255))
history = OneToMany('RenameHistory')
path = Field(UnicodeString(255), nullable=False, unique=True)
# Subtitles can have multiple parts, too
part = Field(Integer)
release = ManyToOne('Release')
# Let's remember the size so we know about offline media.
size = Field(Integer)

Loading…
Cancel
Save