code: def get_form_class(self):
          
          super_method = super(TranslatableModelFormMixin, self).get_form_class
          # no "__func__" on the class level function in python 3
          default_method = getattr(ModelFormMixin.get_form_class, '__func__', ModelFormMixin.get_form_class)
          if not (super_method.__func__ is default_method):
              # Don't get in your way, if you've overwritten stuff.
              return super_method()
          else:
              # Same logic as ModelFormMixin.get_form_class, but using the right form base class.
              if self.form_class:
                  return self.form_class
              else:
                  model = _get_view_model(self)
                  if self.fields:
                      fields = self.fields
                      return modelform_factory(model, form=TranslatableModelForm, fields=fields)
                  else:
                      return modelform_factory(model, form=TranslatableModelForm)
docs: Return a ``TranslatableModelForm`` by default if no form_class is set.