Beispiel #1
0
    def edit_form(self, obj=None):
        """

        :param obj:
        :return:
        """
        real_form = super(CatalogsModelView, self).edit_form(obj)
        fill_form_choices(real_form.moderator_id, 'users', 'username')
        return real_form
Beispiel #2
0
 def edit_form(self, obj=None):
     real_form = super(UsersModelView, self).edit_form(obj)
     fill_form_choices(real_form.role_ids, 'roles', 'username')
     return real_form