Skip to content

Commit

Permalink
added issue as todo
Browse files Browse the repository at this point in the history
  • Loading branch information
KlemenSpruk committed Oct 12, 2023
1 parent 3bbafcc commit 6310e4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions django_project_base/rest/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ def __init__(self, *args, is_filter: bool = False, **kwds):
super().__init__(*args, is_filter=is_filter, **kwds)
self.actions.actions = [a for a in self.actions.actions if a.name != "delete"]
self.actions.actions.append(
# TODO: https://taiga.velis.si/project/velis74-dynamic-forms/issue/837
TableAction(
position=TablePosition.FIELD_END,
label="Reset pending",
Expand All @@ -198,6 +199,7 @@ def __init__(self, *args, is_filter: bool = False, **kwds):
)
request = self.context.get("request")
if request and (request.user.is_superuser or request.user.is_staff):
# TODO: https://taiga.velis.si/project/velis74-dynamic-forms/issue/837
self.actions.actions.append(
TableAction(
position=TablePosition.ROW_END,
Expand Down

0 comments on commit 6310e4a

Please sign in to comment.