From f547da5802b6d90aa576cada8042c068c66b319f Mon Sep 17 00:00:00 2001 From: Victoria Jury Date: Wed, 16 Oct 2024 16:52:24 +0200 Subject: [PATCH] fix e-commerce filter button --- .../migrations/0012_alter_project_category.py | 27 +++++++++++++++++++ projects/models.py | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 projects/migrations/0012_alter_project_category.py diff --git a/projects/migrations/0012_alter_project_category.py b/projects/migrations/0012_alter_project_category.py new file mode 100644 index 0000000..0a84b87 --- /dev/null +++ b/projects/migrations/0012_alter_project_category.py @@ -0,0 +1,27 @@ +# Generated by Django 5.1.2 on 2024-10-16 14:51 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("projects", "0011_remove_project_id_alter_project_shortname"), + ] + + operations = [ + migrations.AlterField( + model_name="project", + name="category", + field=models.CharField( + choices=[ + ("web", "Web Design"), + ("mobile", "Mobile"), + ("wordpress", "Wordpress"), + ("e-commerce", "E-commerce"), + ], + default="web", + max_length=20, + ), + ), + ] diff --git a/projects/models.py b/projects/models.py index b5eea39..32f175b 100644 --- a/projects/models.py +++ b/projects/models.py @@ -12,7 +12,7 @@ class Project(models.Model): ("web", "Web Design"), ("mobile", "Mobile"), ("wordpress", "Wordpress"), - ("ecommerce", "E-commerce"), + ("e-commerce", "E-commerce"), ] title = models.CharField(max_length=100) shortname = models.CharField(