Skip to content

Commit

Permalink
Allow notif recipient's web_url and telegram_id to be null
Browse files Browse the repository at this point in the history
  • Loading branch information
joemarct committed Sep 1, 2021
1 parent 2cb9204 commit 9c14541
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
23 changes: 23 additions & 0 deletions main/migrations/0041_auto_20210901_0425.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 3.0.14 on 2021-09-01 04:25

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('main', '0040_token_nft_token_group_details'),
]

operations = [
migrations.AlterField(
model_name='recipient',
name='telegram_id',
field=models.CharField(blank=True, max_length=50, null=True),
),
migrations.AlterField(
model_name='recipient',
name='web_url',
field=models.CharField(blank=True, max_length=300, null=True),
),
]
4 changes: 2 additions & 2 deletions main/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ def __str__(self):


class Recipient(PostgresModel):
web_url = models.CharField(max_length=300, blank=True)
telegram_id = models.CharField(max_length=50, blank=True)
web_url = models.CharField(max_length=300, null=True, blank=True)
telegram_id = models.CharField(max_length=50, null=True, blank=True)
valid = models.BooleanField(default=True)

def __str__(self):
Expand Down

0 comments on commit 9c14541

Please sign in to comment.