From 2a5bb9afb2cea4e10aae0e3187e5361869e4109c Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Sun, 12 Mar 2017 16:31:08 +0100 Subject: Some renaming --- archivist/model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'archivist/model.py') 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() -- cgit v1.2.3-70-g09d2