Generates a template path name based on model and app.
        :param template_name_suffix: pass a custom suffix or leave empty for default
        :return: template path

def get_template_name(self, template_name_suffix=None):
        """
        Generates a template path name based on model and app.
        :param template_name_suffix: pass a custom suffix or leave empty for default
        :return: template path
        """
        if isinstance(self.object, models.Model):
            meta = self.object._meta
            return self.get_template_path(meta, app_label=meta.app_label, object_name=meta.object_name, template_name_suffix=template_name_suffix)
        elif hasattr(self, 'model') and self.model is not None and issubclass(self.model, models.Model):
            meta = self.model._meta
            return self.get_template_path(meta, app_label=meta.app_label, object_name=meta.object_name, template_name_suffix=template_name_suffix)