Add another

This commit is contained in:
ack
2026-01-21 01:46:12 +03:00
parent 7088d1e498
commit daf734cafb
32 changed files with 300 additions and 0 deletions

9
products/models.py Normal file
View File

@@ -0,0 +1,9 @@
from django.db import models
class Product(models.Model):
name = models.CharField(max_length=255, verbose_name="Название")
price = models.DecimalField(max_digits=10, decimal_places=2, verbose_name="Цена")
weight = models.FloatField(verbose_name="Вес (кг)")
def __str__(self):
return self.name