1. Roman Krejčík
  2. djangoappengine


Waldemar Kornewald  committed 72eb1a5

improved missing TextField exception: now it also mentions the model

  • Participants
  • Parent commits 674aa35
  • Branches default

Comments (0)

Files changed (1)

File db/compiler.py

View file
             value = self.convert_value_for_db(db_type, value)
             if isinstance(value, Text):
                 raise DatabaseError('TextField is not indexed, by default, '
-                                    "so you can't filter on it. "
-                                    'Please add an index definition for the '
-                                    'column "%s" as described here:\n'
+                                    "so you can't filter on it. Please add "
+                                    'an index definition for the column %s '
+                                    'on the model %s.%s as described here:\n'
-                                    % column)
+                                    % (column, self.query.model.__module__, self.query.model.__name__))
             if key in query:
                 existing_value = query[key]
                 if isinstance(existing_value, list):