예제 #1
0
 def scaffold_pk(self):
     """
         Return the primary key name from a model
     """
     return tools.get_primary_key(self.model)
예제 #2
0
파일: view.py 프로젝트: tritip/flask-admin
 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)
예제 #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)
예제 #4
0
파일: view.py 프로젝트: Cosmius/flask-admin
 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)
예제 #5
0
 def scaffold_pk(self):
     """
         Return the primary key name from a model
     """
     return tools.get_primary_key(self.model)