mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: removed project filter (#2284)
This commit is contained in:
parent
7404fe71b1
commit
9dd22f07f4
@ -28,7 +28,7 @@ class GlobalView(BaseModel):
|
||||
def save(self, *args, **kwargs):
|
||||
if self._state.adding:
|
||||
largest_sort_order = GlobalView.objects.filter(
|
||||
project=self.project
|
||||
workspace=self.workspace
|
||||
).aggregate(largest=models.Max("sort_order"))["largest"]
|
||||
if largest_sort_order is not None:
|
||||
self.sort_order = largest_sort_order + 10000
|
||||
|
Loading…
Reference in New Issue
Block a user