code: def get_model_type(self):
          
          if self.model_type is None:
              raise ImproperlyConfigured(
                  "%s requires either a definition of "
                  "'model_type' or an implementation of 'get_model_type()'" %
                  self.__class__.__name__)
          return self.model_type
docs: Return the model type for templates.