<gh_stars>1-10
from motorengine import Document
from tornkts.mixins.to_dict_mixin import ToDictMixin
from tornkts.mixins.validate_mixin import ValidateMixin


class BaseDocument(ToDictMixin, ValidateMixin, Document):
    meta = {
        'allow_inheritance': True,
        'abstract': True
    }

    def get_id(self):
        return str(self._id)

from motorengine import Document
from tornkts.mixins.to_dict_mixin import ToDictMixin
from tornkts.mixins.validate_mixin import ValidateMixin


class BaseDocument(ToDictMixin, ValidateMixin, Document):
    meta = {
        'allow_inheritance': True,
        'abstract': True
    }

    def get_id(self):
        return str(self._id)