Skip to content

Commit

Permalink
Merge pull request #94 from UnitapApp/feature/token-pics
Browse files Browse the repository at this point in the history
add token image url to tokentap
  • Loading branch information
Mohamad Bastin authored Aug 27, 2023
2 parents 1e37096 + 8d9c4d0 commit 5f2d812
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tokenTap/migrations/0017_tokendistribution_token_image_url.py
Original file line number Diff line number Diff line change
@@ -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),
),
]
1 change: 1 addition & 0 deletions tokenTap/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions tokenTap/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class Meta:
"discord_url",
"twitter_url",
"image_url",
"token_image_url",
"token",
"token_address",
"amount",
Expand Down

0 comments on commit 5f2d812

Please sign in to comment.