"""This module contains import mixins for the ``translation`` app."""

from mtp.apps.common.views_utils import RestrictToSuperuserOrTrainerMixin
from mtp.apps.import_export.views import XLSImportViewMixin


class TranslationImportViewMixin(XLSImportViewMixin, RestrictToSuperuserOrTrainerMixin):
    """Mixin to import translation of translatable object.

    Notes
    -----
    To use this mixin, you would define a ``create_sheets`` method and this method must to call
    ``export_data`` which export an object.
    """

    pass
