Show More
@@ -554,6 +554,17 b' class UsersGroup(Base, BaseModel):' | |||||
554 | "get_users_group_%s" % users_group_id)) |
|
554 | "get_users_group_%s" % users_group_id)) | |
555 | return users_group.get(users_group_id) |
|
555 | return users_group.get(users_group_id) | |
556 |
|
556 | |||
|
557 | def get_api_data(self): | |||
|
558 | users_group = self | |||
|
559 | ||||
|
560 | data = dict( | |||
|
561 | id=users_group.users_group_id, | |||
|
562 | group_name=users_group.users_group_name, | |||
|
563 | active=users_group.users_group_active, | |||
|
564 | ) | |||
|
565 | ||||
|
566 | return data | |||
|
567 | ||||
557 |
|
568 | |||
558 | class UsersGroupMember(Base, BaseModel): |
|
569 | class UsersGroupMember(Base, BaseModel): | |
559 | __tablename__ = 'users_groups_members' |
|
570 | __tablename__ = 'users_groups_members' |
General Comments 0
You need to be logged in to leave comments.
Login now