mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-03-21 17:09:24 +01:00
Merge pull request #359
feat(rules): add .exclude() to transactions() function
This commit is contained in:
@@ -15,6 +15,9 @@ class TransactionsGetter:
|
||||
def __init__(self, **filters):
|
||||
self.__queryset = Transaction.objects.filter(**filters)
|
||||
|
||||
def exclude(self, **exclude_filters):
|
||||
self.__queryset = Transaction.objects.exclude(**exclude_filters)
|
||||
|
||||
@property
|
||||
def sum(self):
|
||||
return self.__queryset.aggregate(
|
||||
|
||||
Reference in New Issue
Block a user