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:
18
board/migrations/0005_alter_post_user_token.py
Normal file
18
board/migrations/0005_alter_post_user_token.py
Normal 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),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -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 = [
|
||||||
|
|||||||
Reference in New Issue
Block a user