dodanie wolontariatu do modelu

This commit is contained in:
Jędrzej Konopko 2020-12-30 17:08:33 +01:00
parent 4dcb598519
commit f9a932eebf

View File

@ -15,6 +15,7 @@ TYPE_O = (
class Product(models.Model): class Product(models.Model):
active = models.BooleanField(default=True) active = models.BooleanField(default=True)
Wolontatriat = models.BooleanField(default=False)
picture = models.ImageField(null=True, blank=True, upload_to="images/") picture = models.ImageField(null=True, blank=True, upload_to="images/")
create_date = models.DateField(("Date"), default=datetime.date.today) create_date = models.DateField(("Date"), default=datetime.date.today)
user_iden = models.ForeignKey(User, on_delete=models.CASCADE) user_iden = models.ForeignKey(User, on_delete=models.CASCADE)