From b57706b5c95dfe189e891e431a6716f823e414bb Mon Sep 17 00:00:00 2001 From: Mohamad Bastin Date: Tue, 3 Oct 2023 00:00:02 +0200 Subject: [PATCH 1/2] change claim recipts amount to use big num field --- .../0057_alter_claimreceipt_amount.py | 18 ++++++++++++++++++ faucet/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 faucet/migrations/0057_alter_claimreceipt_amount.py 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..b84bef07 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( From eb9e9c5576e7c69385bee7ecc09a774f4cf65662 Mon Sep 17 00:00:00 2001 From: Mohamad Bastin Date: Tue, 3 Oct 2023 00:01:18 +0200 Subject: [PATCH 2/2] change chain str --- faucet/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faucet/models.py b/faucet/models.py index b84bef07..fb1c4688 100644 --- a/faucet/models.py +++ b/faucet/models.py @@ -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):