Commits

Waldemar Kornewald committed e5150cf

further improved error message for TextField filters

Comments (0)

Files changed (1)

             if isinstance(value, Text):
                 raise DatabaseError('TextField is not indexed, by default, '
                                     "so you can't filter on it. "
-                                    'Please add an index definition as '
-                                    'described here:\n'
-                                    'http://www.allbuttonspressed.com/blog/django/2010/07/Managing-per-field-indexes-on-App-Engine')
+                                    'Please add an index definition for the '
+                                    'column "%s" as described here:\n'
+                                    'http://www.allbuttonspressed.com/blog/django/2010/07/Managing-per-field-indexes-on-App-Engine'
+                                    % column)
             if key in query:
                 existing_value = query[key]
                 if isinstance(existing_value, list):