Skip to content

Commit

Permalink
Merge pull request #267 from LenaWil/more-allergy-space
Browse files Browse the repository at this point in the history
Change the allergies length
  • Loading branch information
LenaWil authored Oct 3, 2023
2 parents 386ae94 + 87a811f commit 11a841e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions userdetails/migrations/0023_alter_user_allergies.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Generated by Django 4.1.4 on 2023-10-03 18:14

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("userdetails", "0022_move_allergies"),
]

operations = [
migrations.AlterField(
model_name="user",
name="allergies",
field=models.CharField(
blank=True,
help_text="E.g. gluten or vegetarian. Leave empty if not applicable.",
max_length=1000,
verbose_name="food allergies or preferences",
),
),
]
2 changes: 1 addition & 1 deletion userdetails/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class User(AbstractUser):
email = models.EmailField("email address", unique=True)

allergies = models.CharField(
max_length=100,
max_length=1000,
blank=True,
help_text="E.g. gluten or vegetarian. Leave empty if not applicable.",
verbose_name="food allergies or preferences",
Expand Down

0 comments on commit 11a841e

Please sign in to comment.