1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

[8721] introduced some internal field names. We hide them from the list of

valid field names in debugging output so that it doesn't confuse things.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8730 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick
2008-08-30 04:52:56 +00:00
parent c60e22c073
commit fd0cc45828
2 changed files with 13 additions and 2 deletions

View File

@@ -52,5 +52,12 @@ __test__ = {"regressions": """
>>> e1.related.all()
[<Tag: t2>]
# The secret internal related names for self-referential many-to-many fields
# shouldn't appear in the list when an error is made.
>>> SelfRefer.objects.filter(porcupine='fred')
Traceback (most recent call last):
...
FieldError: Cannot resolve keyword 'porcupine' into field. Choices are: id, name, references, related
"""
}