<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_template(self, tname):
 """ - Get custom template from CRUD class, if it is defined in it - No custom template in CRUD class, then use the default template """


        if self.custom_templates and self.custom_templates.get(tname, None):
            return self.custom_templates.get(tname)
        elif self.inlineformset:
            return 'crudbuilder/inline/{}.html'.format(tname)
        else:
            return 'crudbuilder/instance/{}.html'.format(tname)