Ticket #779: extra_lookup_kwargs_callable_r1217.patch
File extra_lookup_kwargs_callable_r1217.patch, 580 bytes (added by , 19 years ago) |
---|
-
views/generic/list_detail.py
37 37 """ 38 38 mod = models.get_module(app_label, module_name) 39 39 lookup_kwargs = extra_lookup_kwargs.copy() 40 for key, value in lookup_kwargs.items(): 41 if callable(value): 42 lookup_kwargs[key] = value() 40 43 if paginate_by: 41 44 paginator = ObjectPaginator(mod, lookup_kwargs, paginate_by) 42 45 page = request.GET.get('page', 0)