From a347729473602d9b18cc19fdc810ccd394422f18 Mon Sep 17 00:00:00 2001 From: Ethan Nguyen Date: Wed, 21 Apr 2021 22:23:17 -0400 Subject: [PATCH] feat(authentication): add character limit to bio You know who you are... --- .../migrations/0006_alter_user_biography.py | 18 ++++++++++++++++++ tjdests/apps/authentication/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 tjdests/apps/authentication/migrations/0006_alter_user_biography.py diff --git a/tjdests/apps/authentication/migrations/0006_alter_user_biography.py b/tjdests/apps/authentication/migrations/0006_alter_user_biography.py new file mode 100644 index 0000000..e67a180 --- /dev/null +++ b/tjdests/apps/authentication/migrations/0006_alter_user_biography.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2 on 2021-04-22 02:22 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("authentication", "0005_user_gpa"), + ] + + operations = [ + migrations.AlterField( + model_name="user", + name="biography", + field=models.TextField(blank=True, max_length=1000), + ), + ] diff --git a/tjdests/apps/authentication/models.py b/tjdests/apps/authentication/models.py index 61b1f49..fe93834 100644 --- a/tjdests/apps/authentication/models.py +++ b/tjdests/apps/authentication/models.py @@ -19,7 +19,7 @@ class User(AbstractUser): verbose_name="Publish my data", help_text="Unless this is set, your data will not appear publicly.", ) - biography = models.TextField(blank=True) + biography = models.TextField(blank=True, max_length=1000) attending_decision = models.ForeignKey( Decision,