|
@@ -13,7 +13,7 @@ class Image(models.Model):
|
|
|
class Good(models.Model):
|
|
|
_id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
|
|
|
name = models.CharField('name',default="", max_length = 200,blank=True)
|
|
|
- description = models.CharField('description',default="", max_length = 1000,blank=True)
|
|
|
+ description = models.CharField('description',default="", max_length = 5000,blank=True)
|
|
|
price = models.IntegerField("price", default=0,blank=True)
|
|
|
amount = models.IntegerField("amount", default=0,blank=True)
|
|
|
images = models.ManyToManyField(Image,related_name ="goods", blank = True,through='GoodImage')
|