diff options
Diffstat (limited to '')
-rw-r--r-- | archivist/model.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archivist/model.py b/archivist/model.py index 86c2cf1..6d452b4 100644 --- a/archivist/model.py +++ b/archivist/model.py @@ -73,13 +73,13 @@ class Document(BaseModel): IN = 0 OUT = 1 + content = ForeignKeyField(DocumentContent, related_name = 'document') created = DateField(default=datetime.date.today) inserted = DateTimeField(default=datetime.datetime.now) description = CharField(null=True) original_path = CharField(null=True) - file_type = CharField(null=True) + mimetype = CharField(null=True) direction = EnumField(Direction, null=True) - content = ForeignKeyField(DocumentContent, related_name = 'document') @classmethod @db.atomic() |