Fix form with files

This commit is contained in:
Skia
2016-08-31 15:29:16 +02:00
parent a47cca1b1e
commit 37d303634c
5 changed files with 24 additions and 4 deletions

View File

@ -88,7 +88,7 @@ class Product(models.Model):
tray = models.BooleanField(_('tray price'), default=False)
parent_product = models.ForeignKey('self', related_name='children_products', verbose_name=_("parent product"), null=True,
blank=True, on_delete=models.SET_NULL)
buying_groups = models.ManyToManyField(Group, related_name='products', verbose_name=_("buying groups"))
buying_groups = models.ManyToManyField(Group, related_name='products', verbose_name=_("buying groups"), blank=True)
class Meta:
verbose_name = _('product')