from onegov.org.forms import ManageUserForm from onegov.translator_directory import _ [docs] class ManageUserFormCustom(ManageUserForm): """ Defines the edit user form. """ [docs] def on_request(self) -> None: super().on_request() self.role.choices = [ ('admin', _('Admin')), ('editor', _('Editor')), ('member', _('Member')), ('translator', _('Translator')) ]