se agregó una columna a la tabla purchase

parent 01b40c8e
......@@ -47,6 +47,7 @@ class CartProduct(models.Model):
info = models.TextField(null=True)
purchased = models.NullBooleanField()
# -------------------------------------------------------------------------------------------
class Process(models.Model):
name = models.CharField(max_length=50)
......@@ -60,7 +61,7 @@ class Search(models.Model):
aggreg_date = models.DateTimeField(auto_now=True) # date of product aggregation
startDate = models.DateTimeField(verbose_name='Start Date')
endDate = models.DateTimeField(verbose_name='End Date')
process = models.ForeignKey(Process, on_delete=models.CASCADE, default='') #Desbloqueo cambio de Sergio
process = models.ForeignKey(Process, on_delete=models.CASCADE, default='') # Desbloqueo cambio de Sergio
clouds = models.IntegerField(default=4)
......@@ -71,4 +72,4 @@ class Purchase(models.Model):
productList = models.TextField(verbose_name="JSON Product List")
purchased = models.BooleanField(default=False)
price = models.FloatField(default=0.0)
progress = models.IntegerField(default=0,max_length=3)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment