Commits

crast  committed e578feb

ReferencePropertyField: fix the 'no attribute queryset' error. Fixes #36.

  • Participants
  • Parent commits 92983e2

Comments (0)

Files changed (1)

File wtforms/ext/appengine/fields.py

 
     def pre_validate(self, form):
         if not self.allow_blank or self.data is not None:
-            for obj in self.queryset:
+            for obj in self.query:
                 if self.data == str(obj.key()):
                     break
             else: