Get rids of the APIEndPoint and APIResource classes. Register API url using the 'has_rest_api' AppConfig variable.
Signed-off-by: Michael Price <loneviking72@gmail.com>
This commit is contained in:
committed by
Roberto Rosario
parent
36d19ea284
commit
e1956f8d80
@@ -18,7 +18,6 @@ from common.permissions_runtime import permission_error_log_view
|
||||
from common.widgets import two_state_template
|
||||
from mayan.celery import app
|
||||
from navigation import SourceColumn
|
||||
from rest_api.classes import APIEndPoint
|
||||
|
||||
from .classes import DocumentStateHelper, WorkflowAction
|
||||
from .handlers import (
|
||||
@@ -52,6 +51,7 @@ from .widgets import widget_transition_events
|
||||
|
||||
class DocumentStatesApp(MayanAppConfig):
|
||||
app_url = 'states'
|
||||
has_rest_api = True
|
||||
has_tests = True
|
||||
name = 'document_states'
|
||||
verbose_name = _('Document states')
|
||||
@@ -59,8 +59,6 @@ class DocumentStatesApp(MayanAppConfig):
|
||||
def ready(self):
|
||||
super(DocumentStatesApp, self).ready()
|
||||
|
||||
APIEndPoint(app=self, version_string='1')
|
||||
|
||||
Action = apps.get_model(
|
||||
app_label='actstream', model_name='Action'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user