Implement use of the injected 'resolved_object' variable to simplify navigation links of objects in lists. Remove obsolete varaibles_tags. Consolidate get_action_links by means of get_menus_links which supports a list of menus to resolve. Remove obsolete 'list_object_variable_name'. Remove 'resolve_for_source' method which was consolidated with the normal resolve method by means of an optional 'source' argument.
This commit is contained in:
@@ -37,7 +37,6 @@ def index_setup_list(request):
|
||||
context = {
|
||||
'title': _('Indexes'),
|
||||
'hide_object': True,
|
||||
'list_object_variable_name': 'index',
|
||||
'extra_columns': [
|
||||
{'name': _('Name'), 'attribute': 'name'},
|
||||
{'name': _('Title'), 'attribute': 'title'},
|
||||
@@ -151,7 +150,6 @@ def index_setup_view(request, index_pk):
|
||||
context = {
|
||||
'object_list': object_list,
|
||||
'index': index,
|
||||
'list_object_variable_name': 'node',
|
||||
'navigation_object_list': ['index'],
|
||||
'title': _('Tree template nodes for index: %s') % index,
|
||||
'hide_object': True,
|
||||
|
||||
Reference in New Issue
Block a user