author | Rémi Cardona <remi.cardona@logilab.fr> |
Fri, 18 Sep 2015 18:02:20 +0200 | |
changeset 10716 | 9a9d57edb1c1 |
parent 10715 | edd1ba9bb030 |
child 10717 | 46f934bebd85 |
web/formfields.py | file | annotate | diff | comparison | revisions |
--- a/web/formfields.py Fri Sep 18 18:01:31 2015 +0200 +++ b/web/formfields.py Fri Sep 18 18:02:20 2015 +0200 @@ -383,7 +383,7 @@ assert self.choices is not None if callable(self.choices): # pylint: disable=E1102 - if getattr(self.choices, 'im_self', None) is self: + if getattr(self.choices, '__self__', None) is self: vocab = self.choices(form=form, **kwargs) else: vocab = self.choices(form=form, field=self, **kwargs)