Skip to content

WorkflowElement matching query does not exist #14

@mauromsl

Description

@mauromsl

With Janeway 1.3.6, the plugin throws an error when hitting publish:
WorkflowElement matching query does not exist

DoesNotExist: WorkflowElement matching query does not exist.
  File "django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "django/core/handlers/base.py", line 249, in _legacy_get_response
    response = self._get_response(request)
  File "django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "security/decorators.py", line 134, in wrapper
    return func(request, *args, **kwargs)
  File "/home/iastate1/janeway/src/plugins/back_content/views.py", line 158, in article
    **workflow_kwargs)
  File "events/logic.py", line 248, in raise_event
    event_return = [func(**kwargs) for func in Events._hooks[event_name]]
  File "events/logic.py", line 248, in <listcomp>
    event_return = [func(**kwargs) for func in Events._hooks[event_name]]
  File "core/workflow.py", line 42, in workflow_element_complete
    return workflow_next(handshake_url, request, article, switch_stage)
  File "core/workflow.py", line 62, in workflow_next
    current_element = workflow.elements.get(handshake_url=handshake_url)
  File "django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "django/db/models/query.py", line 380, in get
    self.model._meta.object_name

It uses the handshake_url "bc_article" for which it can't find any workflow elements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions