Add support for auto importing dependecies
- No need to use: from .dependencies import * # NOQA Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -10,7 +10,6 @@ from mayan.apps.common.html_widgets import TwoStateWidget
|
||||
from mayan.apps.navigation.classes import SourceColumn
|
||||
|
||||
from .classes import Dependency, DependencyGroup, DependencyGroupEntry
|
||||
from .dependencies import * # NOQA
|
||||
from .links import (
|
||||
link_check_version, link_dependency_group_entry_detail,
|
||||
link_dependency_group_entry_list, link_dependency_group_list,
|
||||
@@ -29,6 +28,8 @@ class DependenciesApp(MayanAppConfig):
|
||||
def ready(self):
|
||||
super(DependenciesApp, self).ready()
|
||||
|
||||
Dependency.initialize()
|
||||
|
||||
SourceColumn(
|
||||
attribute='get_label', label=_('Label'), order=-1, source=Dependency
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user