Use the new model helpers
This commit is contained in:
@@ -117,7 +117,8 @@ class Aggregator(models.Model):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_currencies_for_platform(cls, platform):
|
def get_currencies_for_platform(cls, platform):
|
||||||
aggregators = Aggregator.get_for_platform(platform)
|
# aggregators = Aggregator.get_for_platform(platform)
|
||||||
|
aggregators = platform.aggregators
|
||||||
currencies = set()
|
currencies = set()
|
||||||
for aggregator in aggregators:
|
for aggregator in aggregators:
|
||||||
for currency in aggregator.currencies:
|
for currency in aggregator.currencies:
|
||||||
@@ -127,7 +128,8 @@ class Aggregator(models.Model):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_account_info_for_platform(cls, platform):
|
def get_account_info_for_platform(cls, platform):
|
||||||
aggregators = Aggregator.get_for_platform(platform)
|
# aggregators = Aggregator.get_for_platform(platform)
|
||||||
|
aggregators = platform.aggregators
|
||||||
account_info = {}
|
account_info = {}
|
||||||
for agg in aggregators:
|
for agg in aggregators:
|
||||||
for bank, accounts in agg.account_info.items():
|
for bank, accounts in agg.account_info.items():
|
||||||
|
|||||||
Reference in New Issue
Block a user