mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
magic-removal: Fixed #1186 -- Fixed problem resolving primary key in some 'pk' database queries. Also lightly refactored query-parsing code. Thanks, Russ
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1856 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -35,7 +35,7 @@ John Smith
|
||||
>>> Person.objects.get_list(firstname__exact='John')
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
TypeError: got unexpected keyword argument 'firstname__exact'
|
||||
TypeError: Cannot resolve keyword 'firstname' into field
|
||||
|
||||
>>> p = Person.objects.get_object(last_name__exact='Smith')
|
||||
>>> p.first_name
|
||||
|
||||
Reference in New Issue
Block a user