Fix null -> blank

This commit is contained in:
Michal Kunc 2023-02-17 15:07:21 +01:00
parent 87086cdce9
commit 5895714fd5
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,19 @@
# Generated by Django 4.1.5 on 2023-02-17 14:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('watchlist', '0007_alter_movie_csfd_id_alter_movie_imdb_id'),
]
operations = [
migrations.AlterField(
model_name='movievote',
name='comment',
field=models.TextField(blank=True, default=''),
preserve_default=False,
),
]

View File

@ -49,7 +49,7 @@ class MovieVote(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
vote = models.IntegerField(choices=Vote.choices, default=Vote.NOVOTE)
seen = models.BooleanField(default=False, null=True)
comment = models.TextField(null=True)
comment = models.TextField(blank=True)
def __str__(self):
return f"{self.user.username}'s vote for {self.movie.name}"