uccser/cs-field-guide

View on GitHub
csfieldguide/interactives/translation.py

Summary

Maintainability
A
0 mins
Test Coverage
"""Modeltranslation configuration for Interactive application."""

from modeltranslation.translator import translator, TranslationOptions
from interactives.models import Interactive


class InteractiveTranslationOptions(TranslationOptions):
    """Translation options for Interactive model."""

    fields = ("name", "template")


translator.register(Interactive, InteractiveTranslationOptions)