Add bank fetch to balances page
This commit is contained in:
parent
8632d2a190
commit
0deab28320
|
@ -66,6 +66,19 @@ class BanksBalances(LoginRequiredMixin, OTPRequiredMixin, ObjectList):
|
||||||
list_url_name = "balances"
|
list_url_name = "balances"
|
||||||
list_url_args = ["type"]
|
list_url_args = ["type"]
|
||||||
|
|
||||||
|
def get_context_data(self):
|
||||||
|
context = super().get_context_data()
|
||||||
|
self.extra_buttons = [
|
||||||
|
{
|
||||||
|
"url": reverse("bank_fetch"),
|
||||||
|
"action": "refresh",
|
||||||
|
"method": "get",
|
||||||
|
"label": "Fetch account details",
|
||||||
|
"icon": "fa-solid fa-refresh",
|
||||||
|
},
|
||||||
|
]
|
||||||
|
return context
|
||||||
|
|
||||||
def get_queryset(self, **kwargs):
|
def get_queryset(self, **kwargs):
|
||||||
aggregators = Aggregator.objects.filter(user=self.request.user, enabled=True)
|
aggregators = Aggregator.objects.filter(user=self.request.user, enabled=True)
|
||||||
account_balances = {}
|
account_balances = {}
|
||||||
|
|
Loading…
Reference in New Issue