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:
@@ -343,7 +343,6 @@ def setup_source_list(request):
|
||||
'object_list': Source.objects.select_subclasses(),
|
||||
'title': _('Sources'),
|
||||
'hide_link': True,
|
||||
'list_object_variable_name': 'source',
|
||||
'extra_columns': [
|
||||
{
|
||||
'name': _('Type'),
|
||||
@@ -459,7 +458,6 @@ def setup_source_transformation_list(request, source_id):
|
||||
],
|
||||
'hide_link': True,
|
||||
'hide_object': True,
|
||||
'list_object_variable_name': 'transformation',
|
||||
'navigation_object_list': ['source'],
|
||||
'object_list': SourceTransformation.transformations.get_for_object(source),
|
||||
'source': source,
|
||||
|
||||
Reference in New Issue
Block a user