code: def _get_options_for_model(self, model, opts_class=None, **options):
          
          if model not in self._registry:
              # Create a new type for backwards compatibility.
              opts = type("%sTranslationOptions" % model.__name__,
                          (opts_class or TranslationOptions,), options)(model)
  
              # Fields for translation may be inherited from abstract
              # superclasses, so we need to look at all parents.
              for base in model.__bases__:
                  if not hasattr(base, '_meta'):
                      # Things without _meta aren't functional models, so they're
                      # uninteresting parents.
                      continue
                  opts.update(self._get_options_for_model(base))
  
              # Cache options for all models -- we may want to compute options
              # of registered subclasses of unregistered models.
              self._registry[model] = opts
  
          return self._registry[model]
docs: Returns an instance of translation options with translated fields
          defined for the ``model`` and inherited from superclasses.