Example #1
0
 def get_entity_name(cls):
     return to_snake_case(cls.__name__)
Example #2
0
 def get_entity_name(self):
     return to_snake_case(self.__class__.__name__)
Example #3
0
 def get_class_id_name(cls):
     id_name = to_snake_case(cls.__name__) + '_id'
     if id_name.startswith('state_'):
         id_name = id_name.replace('state_', '')
     return id_name
Example #4
0
 def get_class_id_name(cls):
     id_name = to_snake_case(cls.__name__) + "_id"
     if id_name.startswith("state_"):
         id_name = id_name.replace("state_", "")
     return id_name