diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2010-10-20 00:21:47 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2010-10-20 00:21:47 +0000 |
| commit | a014ee02888d2fcea6880bef51f143632a60aab3 (patch) | |
| tree | abd57b0f7c11585df0588bb162bcf4aa389cd058 /docs/topics | |
| parent | 46c17654ed60ee43920406d61eae06a90d15af4d (diff) | |
Modified the implementation of get_object() to be consistent with the approach used elsewhere in the API. Also added documentation for get_object() which seems to have been accidentally omitted.
This is a BACKWARDS-INCOMPATIBLE CHANGE for anyone depending on the API for get_object() that was introduced (but not documented) in r14254.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14292 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/topics')
| -rw-r--r-- | docs/topics/class-based-views.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/topics/class-based-views.txt b/docs/topics/class-based-views.txt index f0c840f694..821ded63db 100644 --- a/docs/topics/class-based-views.txt +++ b/docs/topics/class-based-views.txt @@ -440,9 +440,9 @@ object, so we simply override it and wrap the call:: queryset = Author.objects.all() - def get_object(self, **kwargs): + def get_object(self): # Call the superclass - object = super(AuthorDetailView, self).get_object(**kwargs) + object = super(AuthorDetailView, self).get_object() # Record the lass accessed date object.last_accessed = datetime.datetime.now() object.save() |
