From 8d9c4d0a91624157076ce32ce6bd38dd6991fb88 Mon Sep 17 00:00:00 2001 From: Mohamad Bastin Date: Mon, 7 Aug 2023 12:37:23 +0330 Subject: [PATCH] add token image url to tokentap --- .../0017_tokendistribution_token_image_url.py | 18 ++++++++++++++++++ tokenTap/models.py | 1 + tokenTap/serializers.py | 1 + 3 files changed, 20 insertions(+) create mode 100644 tokenTap/migrations/0017_tokendistribution_token_image_url.py diff --git a/tokenTap/migrations/0017_tokendistribution_token_image_url.py b/tokenTap/migrations/0017_tokendistribution_token_image_url.py new file mode 100644 index 00000000..a7ef643d --- /dev/null +++ b/tokenTap/migrations/0017_tokendistribution_token_image_url.py @@ -0,0 +1,18 @@ +# Generated by Django 4.0.4 on 2023-08-07 09:05 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('tokenTap', '0016_alter_constraint_name'), + ] + + operations = [ + migrations.AddField( + model_name='tokendistribution', + name='token_image_url', + field=models.URLField(blank=True, max_length=255, null=True), + ), + ] diff --git a/tokenTap/models.py b/tokenTap/models.py index d4c5245d..e0db7e00 100644 --- a/tokenTap/models.py +++ b/tokenTap/models.py @@ -24,6 +24,7 @@ class TokenDistribution(models.Model): discord_url = models.URLField(max_length=255, null=True, blank=True) twitter_url = models.URLField(max_length=255, null=True, blank=True) image_url = models.URLField(max_length=255, null=True, blank=True) + token_image_url = models.URLField(max_length=255, null=True, blank=True) token = models.CharField(max_length=100) token_address = models.CharField(max_length=255) diff --git a/tokenTap/serializers.py b/tokenTap/serializers.py index 47bf65af..02d4f75e 100644 --- a/tokenTap/serializers.py +++ b/tokenTap/serializers.py @@ -36,6 +36,7 @@ class Meta: "discord_url", "twitter_url", "image_url", + "token_image_url", "token", "token_address", "amount",