getattr method Way to ease adding new method method = fields.Selection([('x', 'x'), ('y', 'y')], 'Method') def do(self): getattr(self, '_do_%s' % self.method)() def _do_x(self): ... def _do_y(self): ...