diff --git a/faucet/migrations/0057_alter_claimreceipt_amount.py b/faucet/migrations/0057_alter_claimreceipt_amount.py new file mode 100644 index 00000000..7b6e1f76 --- /dev/null +++ b/faucet/migrations/0057_alter_claimreceipt_amount.py @@ -0,0 +1,18 @@ +# Generated by Django 4.0.4 on 2023-10-02 21:59 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('faucet', '0056_alter_claimreceipt_amount'), + ] + + operations = [ + migrations.AlterField( + model_name='claimreceipt', + name='amount', + field=models.BigIntegerField(), + ), + ] diff --git a/faucet/models.py b/faucet/models.py index 27712310..fb1c4688 100644 --- a/faucet/models.py +++ b/faucet/models.py @@ -162,7 +162,7 @@ class ClaimReceipt(models.Model): passive_address = models.CharField(max_length=512, null=True, blank=True) - amount = BigNumField() + amount = models.BigIntegerField() datetime = models.DateTimeField() last_updated = models.DateTimeField(auto_now=True, null=True, blank=True) batch = models.ForeignKey( @@ -239,7 +239,7 @@ class Chain(models.Model): show_in_gastap = models.BooleanField(default=True) def __str__(self): - return f"{self.pk} - {self.symbol}:{self.chain_id}" + return f"{self.pk} - {self.symbol}:{self.chain_id} - {self.chain_name}" @property def has_enough_funds(self):