diff --git a/prizetap/migrations/0077_remove_raffle_image_url_raffle_image.py b/prizetap/migrations/0077_remove_raffle_image_url_raffle_image.py index 069d34f..b6d483d 100644 --- a/prizetap/migrations/0077_remove_raffle_image_url_raffle_image.py +++ b/prizetap/migrations/0077_remove_raffle_image_url_raffle_image.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): dependencies = [ - ('prizetap', '0076_alter_constraint_name'), + ('prizetap', '0077_alter_constraint_name'), ] operations = [ diff --git a/prizetap/migrations/0078_alter_constraint_name.py b/prizetap/migrations/0078_alter_constraint_name.py index d66078c..7c62f9c 100644 --- a/prizetap/migrations/0078_alter_constraint_name.py +++ b/prizetap/migrations/0078_alter_constraint_name.py @@ -19,7 +19,7 @@ def create_prizetap_constraint(apps, schema_editor): class Migration(migrations.Migration): dependencies = [ - ('prizetap', '0077_alter_constraint_name'), + ('prizetap', '0077_remove_raffle_image_url_raffle_image'), ] operations = [ diff --git a/tokenTap/migrations/0063_remove_tokendistribution_token_image_url_and_more.py b/tokenTap/migrations/0063_remove_tokendistribution_token_image_url_and_more.py index 4cac9b8..ca72f5a 100644 --- a/tokenTap/migrations/0063_remove_tokendistribution_token_image_url_and_more.py +++ b/tokenTap/migrations/0063_remove_tokendistribution_token_image_url_and_more.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): dependencies = [ - ('tokenTap', '0062_alter_constraint_name'), + ('tokenTap', '0063_alter_constraint_name'), ] operations = [ @@ -19,7 +19,7 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='tokendistribution', name='token_image', - field=cloudflare_images.field.CloudflareImagesField(blank=True, upload_to='', variant='public'), + field=cloudflare_images.field.CloudflareImagesField(blank=True, null=True, upload_to='', variant='public'), ), migrations.RenameField( model_name='tokendistribution', @@ -29,6 +29,6 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='tokendistribution', name='image', - field=cloudflare_images.field.CloudflareImagesField(blank=True, upload_to='', variant='public'), + field=cloudflare_images.field.CloudflareImagesField(blank=True, null=True, upload_to='', variant='public'), ), ] diff --git a/tokenTap/migrations/0064_alter_constraint_name.py b/tokenTap/migrations/0064_alter_constraint_name.py index 947c3dd..f87ff76 100644 --- a/tokenTap/migrations/0064_alter_constraint_name.py +++ b/tokenTap/migrations/0064_alter_constraint_name.py @@ -18,7 +18,7 @@ def create_tokentap_constraint(apps, schema_editor): class Migration(migrations.Migration): dependencies = [ - ('tokenTap', '0063_alter_constraint_name'), + ('tokenTap', '0063_remove_tokendistribution_token_image_url_and_more'), ] operations = [ diff --git a/tokenTap/models.py b/tokenTap/models.py index f072619..d5e9b1c 100644 --- a/tokenTap/models.py +++ b/tokenTap/models.py @@ -49,8 +49,8 @@ class Status(models.TextChoices): twitter_url = models.URLField(max_length=255, null=True, blank=True) email_url = models.EmailField(max_length=255) telegram_url = models.URLField(max_length=255, null=True, blank=True) - image = CloudflareImagesField(variant="public", blank=True) - token_image = CloudflareImagesField(variant="public", blank=True) + image = CloudflareImagesField(variant="public", null=True, blank=True) + token_image = CloudflareImagesField(variant="public", null=True, blank=True) token = models.CharField(max_length=100) token_address = models.CharField(max_length=255)