Ejemplo n.º 1
0
 def scaffold_pk(self):
     """
         Return the primary key name from a model
     """
     return tools.get_primary_key(self.model)
Ejemplo n.º 2
0
 def scaffold_pk(self):
     """
         Return the primary key name from a model
         PK can be a single value or a tuple if multiple PKs exist
     """
     return tools.get_primary_key(self.model)
Ejemplo n.º 3
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)
Ejemplo n.º 4
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)
Ejemplo n.º 5
0
 def scaffold_pk(self):
     """
         Return the primary key name from a model
     """
     return tools.get_primary_key(self.model)