mirror of
https://github.com/viewflow/viewflow.git
synced 2026-03-13 10:32:34 +08:00
Changes sync
This commit is contained in:
@@ -2,11 +2,15 @@
|
||||
Changelog
|
||||
=========
|
||||
|
||||
2.1.2
|
||||
---------------
|
||||
2.1.2 2024-06-24
|
||||
----------------
|
||||
|
||||
- Allow cancel celery tasks from ERROR state
|
||||
- Hotfix broken Join in case if no other nodes created by Split
|
||||
- Allow cancelling Celery tasks from the ERROR state.
|
||||
- Hotfix: Fix broken Join when no other nodes are created by Split.
|
||||
- Allow using this references to flow static methods as Celery tasks.
|
||||
- Allow cancelling Celery jobs from the ERROR status.
|
||||
- Add missing permission check before adding a new item to the list.
|
||||
- Allow Admin() viewset to be used as a sub-item in an Application viewset.
|
||||
|
||||
2.1.1 2024-06-06
|
||||
----------------
|
||||
|
||||
14
README.md
14
README.md
@@ -185,6 +185,20 @@ modifications of Viewflow. You can find the commercial license terms in
|
||||
|
||||
## Changelog
|
||||
|
||||
### 2.1.2 2024-06-24
|
||||
|
||||
- Allow cancelling Celery tasks from the ERROR state.
|
||||
- Hotfix: Fix broken Join when no other nodes are created by Split.
|
||||
- Allow using this references to flow static methods as Celery tasks.
|
||||
- Allow cancelling Celery jobs from the ERROR status.
|
||||
- Add missing permission check before adding a new item to the list.
|
||||
- Allow Admin() viewset to be used as a sub-item in an Application viewset.
|
||||
|
||||
### 2.1.1 2024-06-06
|
||||
|
||||
- Hotfix broken task creation
|
||||
|
||||
|
||||
### 2.1.0 2024-06-16
|
||||
|
||||
- Allow to assign additional custom data to viewflow.fsm transitions
|
||||
|
||||
2
setup.py
2
setup.py
@@ -4,7 +4,7 @@ README = open("README.md", "r", encoding="utf-8").read()
|
||||
|
||||
setuptools.setup(
|
||||
name="django-viewflow",
|
||||
version="2.1.1",
|
||||
version="2.1.2",
|
||||
author_email="kmmbvnr@gmail.com",
|
||||
author="Mikhail Podgurskiy",
|
||||
description="Reusable library to build business applications fast",
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
# which is part of this source code package.
|
||||
|
||||
from django.urls import path
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from viewflow.urls import AppMenuMixin, Viewset, ViewsetMeta
|
||||
from viewflow.utils import DEFAULT, Icon, first_not_default, has_object_perm, viewprop
|
||||
@@ -138,12 +139,14 @@ class CreateViewMixin(metaclass=ViewsetMeta):
|
||||
return self.filter_kwargs(self.create_view_class, **view_kwargs)
|
||||
|
||||
def get_list_page_actions(self, request, *actions):
|
||||
add_action = Action(
|
||||
name="Add new",
|
||||
url=self.reverse("add"),
|
||||
icon=Icon("add_circle", class_="material-icons mdc-list-item__graphic"),
|
||||
)
|
||||
return super().get_list_page_actions(request, *(add_action, *actions))
|
||||
if self.has_add_permission(request.user):
|
||||
add_action = Action(
|
||||
name="Add new",
|
||||
url=self.reverse("add"),
|
||||
icon=Icon("add_circle", class_="material-icons mdc-list-item__graphic"),
|
||||
)
|
||||
actions = (add_action, *actions)
|
||||
return super().get_list_page_actions(request, *actions)
|
||||
|
||||
@viewprop
|
||||
def create_view_kwargs(self):
|
||||
|
||||
Reference in New Issue
Block a user