def scaffold_pk(self): """ Return the primary key name from a model """ return tools.get_primary_key(self.model)
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)
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)