Fix #159

Trying to add a polymorphic field in search form results in NameError