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

@@ -13,8 +13,7 @@ from user_management.tests.literals import (
from ..models import SmartLink
TEST_SMART_LINK_LABEL = 'test label'
TEST_SMART_LINK_DYNAMIC_LABEL = '{{ document.label }}'
from .literals import TEST_SMART_LINK_LABEL, TEST_SMART_LINK_DYNAMIC_LABEL
@override_settings(OCR_AUTO_OCR=False)