@@ -0,0 +1,1333 @@
+# -*- coding: utf-8 -*_%0Afrom django import forms%0Afrom django.forms.models import BaseInlineFormSet%0A%0Afrom .utils.i18n import get_language%0A%0A__all__ = %5B%0A    'TranslationModelFormMixin',%0A    'TranslationModelForm',%0A%5D%0A%0A%0Aclass TranslationModelFormMixin(object):%0A%0A    language = None%0A%0A    def __init__(self, *args, **kwargs):%0A        current_language = kwargs.pop('_current_language', None)%0A        super(TranslationModelFormMixin, self).__init__(*args, **kwargs)%0A        instance = kwargs.get('instance', None)%0A        if self.language is None:%0A            if instance:%0A                self.language = instance.language%0A                return%0A            self.language_code = current_language or get_language()%0A%0A    def _post_clean(self):%0A        self.instance.language = self.language%0A        super(TranslationModelFormMixin, self)._post_clean()%0A%0A%0Aclass TranslationModelForm(TranslationModelFormMixin, forms.ModelForm):%0A    pass%0A%0A%0Aclass TranslationBaseInlineFormSet(BaseInlineFormSet):%0A%0A    language = None%0A%0A    def _construct_form(self, i, **kwargs):%0A        form = super(TranslationBaseInlineFormSet, self)._construct_form(i, **kwargs)%0A        form.language = self.language%0A        return form%0A%0A    def save_new(self, form, commit=True):%0A        obj = super(TranslationBaseInlineFormSet, self).save_new(form, commit)%0A        return obj%0A

Add forms.