Add blank=True for Post.user_token

This was preventing tests from passing and having a blanked-out user
token, which is OK

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2022-07-23 17:21:35 -07:00
parent c22eff1676
commit 5164842289
2 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
# Generated by Django 4.1b1 on 2022-07-24 00:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("board", "0004_board_spoilers"),
]
operations = [
migrations.AlterField(
model_name="post",
name="user_token",
field=models.CharField(blank=True, max_length=30, null=True),
),
]

View File

@@ -133,7 +133,7 @@ class Post(models.Model):
# The user token that was used to make this post. This is used for # The user token that was used to make this post. This is used for
# verification when a user wants to delete their post. It is not # verification when a user wants to delete their post. It is not
# particularly secret and does not need to be hashed. # particularly secret and does not need to be hashed.
user_token = models.CharField(max_length=30, null=True) user_token = models.CharField(max_length=30, null=True, blank=True)
class Meta: class Meta:
permissions = [ permissions = [