chore: added epoch in issue activity (#2187)
This commit is contained in:
parent
d603c1e8f0
commit
a6a0eb9774
8 changed files with 164 additions and 30 deletions
|
|
@ -2,6 +2,7 @@
|
|||
import json
|
||||
|
||||
# Django Imports
|
||||
from django.utils import timezone
|
||||
from django.db import IntegrityError
|
||||
from django.db.models import Prefetch, F, OuterRef, Func, Exists, Count, Q
|
||||
from django.core import serializers
|
||||
|
|
@ -129,6 +130,7 @@ class ModuleViewSet(BaseViewSet):
|
|||
issue_id=str(self.kwargs.get("pk", None)),
|
||||
project_id=str(self.kwargs.get("project_id", None)),
|
||||
current_instance=None,
|
||||
epoch = int(timezone.now().timestamp())
|
||||
)
|
||||
|
||||
return super().perform_destroy(instance)
|
||||
|
|
@ -277,6 +279,7 @@ class ModuleIssueViewSet(BaseViewSet):
|
|||
issue_id=str(self.kwargs.get("pk", None)),
|
||||
project_id=str(self.kwargs.get("project_id", None)),
|
||||
current_instance=None,
|
||||
epoch = int(timezone.now().timestamp())
|
||||
)
|
||||
return super().perform_destroy(instance)
|
||||
|
||||
|
|
@ -444,6 +447,7 @@ class ModuleIssueViewSet(BaseViewSet):
|
|||
),
|
||||
}
|
||||
),
|
||||
epoch = int(timezone.now().timestamp())
|
||||
)
|
||||
|
||||
return Response(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue