Skip to content

Commit

Permalink
Merge pull request #186 from UnitapApp/fix/prizetap-provider-dashboard
Browse files Browse the repository at this point in the history
Prizetap: update provider dashboard
  • Loading branch information
ShayanShiravani authored Nov 16, 2023
2 parents 32606e6 + a720f5c commit 34ed7d4
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Generated by Django 4.0.4 on 2023-11-16 20:07

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('prizetap', '0040_alter_raffle_nft_ids'),
]

operations = [
migrations.AddField(
model_name='raffle',
name='email_url',
field=models.EmailField(default='[email protected]', max_length=255),
preserve_default=False,
),
migrations.AddField(
model_name='raffle',
name='necessary_information',
field=models.TextField(blank=True, null=True),
),
migrations.AddField(
model_name='raffle',
name='telegram_url',
field=models.URLField(blank=True, max_length=255, null=True),
),
migrations.AlterField(
model_name='raffle',
name='twitter_url',
field=models.URLField(default='https://twitter.com/unitap_app', max_length=255),
preserve_default=False,
),
]
5 changes: 4 additions & 1 deletion prizetap/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,17 @@ class Meta:

name = models.CharField(max_length=256)
description = models.TextField(null=True, blank=True)
necessary_information = models.TextField(null=True, blank=True)
contract = models.CharField(max_length=256)
raffleId = models.BigIntegerField(null=True, blank=True)
creator_name = models.CharField(max_length=255, null=True, blank=True)
creator_profile = models.ForeignKey(UserProfile, on_delete=models.DO_NOTHING, related_name="raffles")
creator_address = models.CharField(max_length=255)
creator_url = models.URLField(max_length=255, null=True, blank=True)
discord_url = models.URLField(max_length=255, null=True, blank=True)
twitter_url = models.URLField(max_length=255, null=True, blank=True)
twitter_url = models.URLField(max_length=255)
email_url = models.EmailField(max_length=255)
telegram_url = models.URLField(max_length=255, null=True, blank=True)
image_url = models.URLField(max_length=255, null=True, blank=True)

prize_amount = BigNumField()
Expand Down
3 changes: 3 additions & 0 deletions prizetap/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,15 @@ class Meta:
"pk",
"name",
"description",
"necessary_information",
"creator_name",
"creator_profile",
"creator_address",
"creator_url",
"discord_url",
"twitter_url",
"email_url",
"telegram_url",
"image_url",
"prize_amount",
"prize_asset",
Expand Down

0 comments on commit 34ed7d4

Please sign in to comment.