Refactor and ignore n/a exchange callbacks

This commit is contained in:
2022-11-10 07:20:20 +00:00
parent 8b52063473
commit c3d908341a
6 changed files with 40 additions and 23 deletions

View File

@@ -69,10 +69,7 @@ class User(AbstractUser):
class Account(models.Model):
EXCHANGE_CHOICES = (
("alpaca", "Alpaca"),
("oanda", "OANDA")
)
EXCHANGE_CHOICES = (("alpaca", "Alpaca"), ("oanda", "OANDA"))
user = models.ForeignKey(User, on_delete=models.CASCADE)
name = models.CharField(max_length=255)
exchange = models.CharField(choices=EXCHANGE_CHOICES, max_length=255)