Fix empty account bug
This commit is contained in:
parent
4a1d7778df
commit
751ddba463
1 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,8 @@ class GenerateMonth(Func):
|
|||
|
||||
|
||||
def history(transaction_set):
|
||||
if not transaction_set.exists():
|
||||
return None
|
||||
_transaction_month = transaction_set.values(month=TruncMonth("date")).order_by(
|
||||
"-date"
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue