diff --git a/prizetap/migrations/0041_raffle_email_url_raffle_necessary_information_and_more.py b/prizetap/migrations/0041_raffle_email_url_raffle_necessary_information_and_more.py new file mode 100644 index 00000000..855ee40e --- /dev/null +++ b/prizetap/migrations/0041_raffle_email_url_raffle_necessary_information_and_more.py @@ -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='blobl@gmail.com', 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, + ), + ] diff --git a/prizetap/models.py b/prizetap/models.py index 913ea732..db96daab 100644 --- a/prizetap/models.py +++ b/prizetap/models.py @@ -36,6 +36,7 @@ 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) @@ -43,7 +44,9 @@ class Meta: 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() diff --git a/prizetap/serializers.py b/prizetap/serializers.py index 46acc61a..2230f8ee 100644 --- a/prizetap/serializers.py +++ b/prizetap/serializers.py @@ -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",