mirror of
https://github.com/django/django.git
synced 2025-10-25 22:56:12 +00:00
magic-removal: Implemented hook for custom managers
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1647 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -83,4 +83,9 @@ AttributeError: type object 'Book' has no attribute 'objects'
|
||||
[Corvette, Neon]
|
||||
>>> Car.fast_cars.get_list()
|
||||
[Corvette]
|
||||
|
||||
# Each model class gets a "_default_manager" attribute, which is a reference
|
||||
# to the first manager defined in the class. In this case, it's "cars".
|
||||
>>> Car._default_manager.get_list(order_by=('name',))
|
||||
[Corvette, Neon]
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user