Changeset 5154
- Timestamp:
- 05/05/07 23:12:08 (1 year ago)
- Files:
-
- django/trunk/django/db/models/query.py (modified) (1 diff)
- django/trunk/tests/modeltests/custom_columns/models.py (modified) (1 diff)
- django/trunk/tests/modeltests/lookup/models.py (modified) (1 diff)
- django/trunk/tests/modeltests/many_to_one/models.py (modified) (2 diffs)
- django/trunk/tests/modeltests/reverse_lookup/models.py (modified) (1 diff)
- django/trunk/tests/regressiontests/null_queries/models.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/db/models/query.py
r5133 r5154 949 949 field_choices(current_opts.get_all_related_objects(), True) + \ 950 950 field_choices(current_opts.fields, False) 951 raise TypeError, "Cannot resolve keyword '%s' into field , choices are: %s" % (name, ", ".join(choices))951 raise TypeError, "Cannot resolve keyword '%s' into field. Choices are: %s" % (name, ", ".join(choices)) 952 952 953 953 # Check whether an intermediate join is required between current_table django/trunk/tests/modeltests/custom_columns/models.py
r5133 r5154 72 72 Traceback (most recent call last): 73 73 ... 74 TypeError: Cannot resolve keyword 'firstname' into field , choices are: article, id, first_name, last_name74 TypeError: Cannot resolve keyword 'firstname' into field. Choices are: article, id, first_name, last_name 75 75 76 76 >>> a = Author.objects.get(last_name__exact='Smith') django/trunk/tests/modeltests/lookup/models.py
r5133 r5154 224 224 Traceback (most recent call last): 225 225 ... 226 TypeError: Cannot resolve keyword 'pub_date_year' into field , choices are: id, headline, pub_date226 TypeError: Cannot resolve keyword 'pub_date_year' into field. Choices are: id, headline, pub_date 227 227 228 228 >>> Article.objects.filter(headline__starts='Article') 229 229 Traceback (most recent call last): 230 230 ... 231 TypeError: Cannot resolve keyword 'headline__starts' into field , choices are: id, headline, pub_date231 TypeError: Cannot resolve keyword 'headline__starts' into field. Choices are: id, headline, pub_date 232 232 233 233 """} django/trunk/tests/modeltests/many_to_one/models.py
r5133 r5154 175 175 Traceback (most recent call last): 176 176 ... 177 TypeError: Cannot resolve keyword 'reporter_id' into field , choices are: id, headline, pub_date, reporter177 TypeError: Cannot resolve keyword 'reporter_id' into field. Choices are: id, headline, pub_date, reporter 178 178 179 179 # You need to specify a comparison clause … … 181 181 Traceback (most recent call last): 182 182 ... 183 TypeError: Cannot resolve keyword 'reporter_id' into field , choices are: id, headline, pub_date, reporter183 TypeError: Cannot resolve keyword 'reporter_id' into field. Choices are: id, headline, pub_date, reporter 184 184 185 185 # You can also instantiate an Article by passing django/trunk/tests/modeltests/reverse_lookup/models.py
r5133 r5154 56 56 Traceback (most recent call last): 57 57 ... 58 TypeError: Cannot resolve keyword 'choice' into field , choices are: poll_choice, related_choice, id, question, creator58 TypeError: Cannot resolve keyword 'choice' into field. Choices are: poll_choice, related_choice, id, question, creator 59 59 """} django/trunk/tests/regressiontests/null_queries/models.py
r5133 r5154 33 33 Traceback (most recent call last): 34 34 ... 35 TypeError: Cannot resolve keyword 'foo' into field , choices are: id, poll, choice35 TypeError: Cannot resolve keyword 'foo' into field. Choices are: id, poll, choice 36 36 37 37 # Can't use None on anything other than __exact
