From f66db0859ee4e816f46ff815c482c8fe701858d5 Mon Sep 17 00:00:00 2001 From: Cel Date: Thu, 18 Nov 2021 09:07:19 +0000 Subject: [PATCH] Fix pronouns field being mandatory --- core/migrations/0037_auto_20211105_1708.py | 10 +++++----- core/models.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/migrations/0037_auto_20211105_1708.py b/core/migrations/0037_auto_20211105_1708.py index 0a1299bd..603d5435 100644 --- a/core/migrations/0037_auto_20211105_1708.py +++ b/core/migrations/0037_auto_20211105_1708.py @@ -5,14 +5,14 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ - ("core", "0036_auto_20211001_0248"), - ] + dependencies = [("core", "0036_auto_20211001_0248")] operations = [ migrations.AlterField( model_name="user", name="pronouns", - field=models.CharField(default="", max_length=64, verbose_name="pronouns"), - ), + field=models.CharField( + blank=True, default="", max_length=64, verbose_name="pronouns" + ), + ) ] diff --git a/core/models.py b/core/models.py index 46aa163a..4ead06ed 100644 --- a/core/models.py +++ b/core/models.py @@ -229,7 +229,7 @@ class User(AbstractBaseUser): blank=True, choices=[("MAN", _("Man")), ("WOMAN", _("Woman")), ("OTHER", _("Other"))], ) - pronouns = models.CharField(_("pronouns"), max_length=64, default="") + pronouns = models.CharField(_("pronouns"), max_length=64, blank=True, default="") tshirt_size = models.CharField( _("tshirt size"), max_length=5,