Pull object names from model definitions in CRUD views

This commit is contained in:
2022-11-04 07:20:42 +00:00
parent 0c52cbd0f8
commit d34ac39d68
10 changed files with 29 additions and 159 deletions

View File

@@ -90,9 +90,8 @@ class Account(models.Model):
"""
client = self.get_client()
if client:
success, supported_symbols = client.get_supported_assets()
if success:
self.supported_symbols = supported_symbols
supported_symbols = client.get_supported_assets()
self.supported_symbols = supported_symbols
super().save(*args, **kwargs)
def get_client(self):