Exemple #1
0
 def scaffold_pk(self):
     """
         Return the primary key name(s) from a model
         If model has single primary key, will return a string and tuple otherwise
     """
     return tools.get_primary_key(self.model)
Exemple #2
0
 def scaffold_pk(self):
     """
         Return the primary key name(s) from a model
         If model has single primary key, will return a string and tuple otherwise
     """
     return tools.get_primary_key(self.model)