diff --git a/shop/migrations/0014_alter_size_name.py b/shop/migrations/0014_alter_size_name.py new file mode 100644 index 0000000..d72281a --- /dev/null +++ b/shop/migrations/0014_alter_size_name.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.11 on 2025-03-20 09:57 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('shop', '0013_color_colorhex_alter_color_name'), + ] + + operations = [ + migrations.AlterField( + model_name='size', + name='name', + field=models.CharField(max_length=20, unique=True), + ), + ] diff --git a/shop/models.py b/shop/models.py index b1bfc82..3f43ee6 100644 --- a/shop/models.py +++ b/shop/models.py @@ -1,4 +1,3 @@ -from django.contrib.auth.models import User from django.db import models from django.conf import settings @@ -9,20 +8,6 @@ class OrderStatus(models.TextChoices): DELIVERED = 'DELIVERED', 'Delivered' CANCELED = 'CANCELED', 'Canceled' -class ColorChoices(models.TextChoices): - RED = "Red", "Red" - BLUE = "Blue", "Blue" - GREEN = "Green", "Green" - BLACK = "Black", "Black" - WHITE = "White", "White" - -class SizeChoices(models.TextChoices): - SMALL = "S", "Small" - MEDIUM = "M", "Medium" - LARGE = "L", "Large" - XLARGE = "XL", "X-Large" - SINGLE = "SINGLE", "Unique" - class CutChoices(models.IntegerChoices): WOMEN = 1, 'Women' MEN = 2, 'Men' @@ -36,7 +21,7 @@ class Color(models.Model): return self.name class Size(models.Model): - name = models.CharField(max_length=20, choices=SizeChoices.choices, unique=True) + name = models.CharField(max_length=20, unique=True) def __str__(self): return self.name diff --git a/shop/templates/shop/cart.html b/shop/templates/shop/cart.html index 8923a3e..b72c971 100644 --- a/shop/templates/shop/cart.html +++ b/shop/templates/shop/cart.html @@ -1,8 +1,8 @@ {% extends 'tournaments/base.html' %} -{% block head_title %}La boutique{% endblock %} -{% block first_title %}La boutique Padel Club{% endblock %} -{% block second_title %}Plein de goodies !{% endblock %} +{% block head_title %}La Boutique{% endblock %} +{% block first_title %}Padel Club{% endblock %} +{% block second_title %}La Boutique{% endblock %} {% block content %}