diff -r edd1ba9bb030 -r 9a9d57edb1c1 web/formfields.py --- 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)