Fix null -> blank
This commit is contained in:
parent
87086cdce9
commit
5895714fd5
19
watchlist/migrations/0008_alter_movievote_comment.py
Normal file
19
watchlist/migrations/0008_alter_movievote_comment.py
Normal 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,
|
||||
),
|
||||
]
|
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user