diff --git a/myproject/products/admin.py b/myproject/products/admin.py index 480cb67..6025f88 100644 --- a/myproject/products/admin.py +++ b/myproject/products/admin.py @@ -655,7 +655,7 @@ class KitItemPriorityInline(nested_admin.NestedTabularInline): class KitItemInline(nested_admin.NestedStackedInline): model = KitItem extra = 0 # Не показывать пустые формы - fields = ['product', 'variant_group', 'quantity', 'notes'] + fields = ['product', 'variant_group', 'quantity'] autocomplete_fields = ['product'] inlines = [KitItemPriorityInline] @@ -770,7 +770,7 @@ class KitItemAdmin(admin.ModelAdmin): list_filter = ['kit'] list_select_related = ['kit', 'product', 'variant_group'] inlines = [KitItemPriorityInline] - fields = ['kit', 'product', 'variant_group', 'quantity', 'notes'] + fields = ['kit', 'product', 'variant_group', 'quantity'] def get_type(self, obj): if obj.variant_group: diff --git a/myproject/products/management/commands/demo_variants.py b/myproject/products/management/commands/demo_variants.py index 5b13e37..2b844b4 100644 --- a/myproject/products/management/commands/demo_variants.py +++ b/myproject/products/management/commands/demo_variants.py @@ -120,8 +120,7 @@ class Command(BaseCommand): kit=kit, variant_group=group, defaults={ - 'quantity': Decimal('15.000'), - 'notes': 'Использовать самые длинные розы' + 'quantity': Decimal('15.000') } ) @@ -169,8 +168,7 @@ class Command(BaseCommand): kit=kit, variant_group=group, defaults={ - 'quantity': Decimal('15.000'), - 'notes': 'Эконом вариант' + 'quantity': Decimal('15.000') } ) diff --git a/myproject/products/templates/products/productkit_detail.html b/myproject/products/templates/products/productkit_detail.html index 7e92c82..1fa135b 100644 --- a/myproject/products/templates/products/productkit_detail.html +++ b/myproject/products/templates/products/productkit_detail.html @@ -127,7 +127,6 @@ Компонент Тип Количество - Примечание @@ -155,13 +154,6 @@ {% endif %} {{ item.quantity|smart_quantity }} - - {% if item.notes %} - {{ item.notes }} - {% else %} - - {% endif %} - {% endfor %}