chore: inbox rename (#5628)
This commit is contained in:
parent
146a500f9f
commit
4d9115d51e
2 changed files with 2 additions and 2 deletions
|
|
@ -302,7 +302,7 @@ class ProjectAPIEndpoint(BaseAPIView):
|
||||||
serializer.save()
|
serializer.save()
|
||||||
if serializer.data["inbox_view"]:
|
if serializer.data["inbox_view"]:
|
||||||
Inbox.objects.get_or_create(
|
Inbox.objects.get_or_create(
|
||||||
name=f"{project.name} Inbox",
|
defaults={"name": f"{project.name} Inbox"},
|
||||||
project=project,
|
project=project,
|
||||||
is_default=True,
|
is_default=True,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -439,7 +439,7 @@ class ProjectViewSet(BaseViewSet):
|
||||||
serializer.save()
|
serializer.save()
|
||||||
if serializer.data["inbox_view"]:
|
if serializer.data["inbox_view"]:
|
||||||
Inbox.objects.get_or_create(
|
Inbox.objects.get_or_create(
|
||||||
name=f"{project.name} Inbox",
|
defaults={"name": f"{project.name} Inbox"},
|
||||||
project=project,
|
project=project,
|
||||||
is_default=True,
|
is_default=True,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue