mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-08-20 06:03:40 +00:00
Fix date filter in event logs
This commit is contained in:
parent
43bfed664d
commit
bd187b9f2c
1 changed files with 3 additions and 2 deletions
|
@ -38,6 +38,7 @@ from topologie.models import Port
|
|||
|
||||
from .forms import classes_for_action_type
|
||||
|
||||
|
||||
class ActionsSearch:
|
||||
def get(self, params):
|
||||
"""
|
||||
|
@ -55,10 +56,10 @@ class ActionsSearch:
|
|||
query &= Q(user=user)
|
||||
|
||||
if start:
|
||||
query &= Q(date_created__geq=start)
|
||||
query &= Q(date_created__gte=start)
|
||||
|
||||
if end:
|
||||
query &= Q(date_created__leq=end)
|
||||
query &= Q(date_created__lte=end)
|
||||
|
||||
action_models = self.models_for_action_types(action_types)
|
||||
if action_models:
|
||||
|
|
Loading…
Reference in a new issue