def get_native_names(self, *names):
     """
     Return a list of native parameter names for a given model.
     """
     if names:
         translations = (self.translations[name] for name in names)
     else:  # return all names
         translations = itervalues(self.translations)
     return [D['translated_name'] for D in translations]
Example #2
0
 def get_native_names(self, *names):
     """
     Return a list of native parameter names for a given model.
     """
     if names:
         translations = (self.translations[name] for name in names)
     else:  # return all names
         translations = itervalues(self.translations)
     return [D['translated_name'] for D in translations]