Fix view context document resolution for the document smart link list view. Fixes GitLab issue #266. Thanks to Baptiste GAILLET @bat79a for the find.

This commit is contained in:
Roberto Rosario
2016-05-08 01:13:54 -04:00
parent d934b2ee1e
commit 2a5264bc2c
4 changed files with 71 additions and 6 deletions

View File

@@ -54,7 +54,7 @@ class LinkingApp(MayanAppConfig):
SourceColumn(
source=ResolvedSmartLink, label=_('Label'),
func=lambda context: context['object'].get_dynamic_label(
context['resolved_object']
context['document']
)
)