def configure_model(self, attrs, field_name):
self.relationship = field_name<EOL>self._set_method_names(relationship=field_name)<EOL>if self.res_name is None:<EOL><INDENT>self.res_name = grammar.singularize(attrs.get('<STR_LIT>', '<STR_LIT>').strip('<STR_LIT:/>'))<EOL><DEDENT>
Hook for ResourceMeta class to call when initializing model class.
Saves fields obtained from resource class backlinks