Ticket #17422: detail.py.patch
File detail.py.patch, 520 bytes (added by , 13 years ago) |
---|
-
django/views/generic/detail.py
diff --git a/django/views/generic/detail.py b/django/views/generic/detail.py index ab21573..b9278bb 100644
a b class SingleObjectMixin(object): 94 94 95 95 96 96 class BaseDetailView(SingleObjectMixin, View): 97 def get(self, request, * *kwargs):97 def get(self, request, *args, **kwargs): 98 98 self.object = self.get_object() 99 99 context = self.get_context_data(object=self.object) 100 100 return self.render_to_response(context)