diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2017-03-12 16:31:08 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2017-03-12 16:31:08 +0100 |
commit | 2a5bb9afb2cea4e10aae0e3187e5361869e4109c (patch) | |
tree | dcbb479b7006f0e9e9d9d3a5a2b029cc2d1a0313 /archivist/model.py | |
parent | 0ce6f75ac5ca4a51cd916f5450dbd7195e27695d (diff) | |
download | archivist-2a5bb9afb2cea4e10aae0e3187e5361869e4109c.tar.gz archivist-2a5bb9afb2cea4e10aae0e3187e5361869e4109c.tar.bz2 archivist-2a5bb9afb2cea4e10aae0e3187e5361869e4109c.zip |
Some renaming
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() |