mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Removed usage of 'object' variable name in docs.
This commit is contained in:
@@ -418,13 +418,11 @@ object -- so we simply override it and wrap the call::
|
||||
queryset = Author.objects.all()
|
||||
|
||||
def get_object(self):
|
||||
# Call the superclass
|
||||
object = super().get_object()
|
||||
obj = super().get_object()
|
||||
# Record the last accessed date
|
||||
object.last_accessed = timezone.now()
|
||||
object.save()
|
||||
# Return the object
|
||||
return object
|
||||
obj.last_accessed = timezone.now()
|
||||
obj.save()
|
||||
return obj
|
||||
|
||||
.. note::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user