You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Adunatio/models/File.py

16 lines
319 B

4 years ago
from mongoengine import *
from models.Group import Group
class Directory(Document):
path = StringField()
can_see_user_group = ReferenceField(Group)
is_system = BooleanField(default=False)
class File(Document):
path = ReferenceField(Directory)
file = FileField()
description = StringField()