class VideoDoc(models.Model):
name_video = models.CharField("Название", max_length=150, null=True, blank=True)
poster = models.ImageField("изображение", upload_to = 'product/videos/posters/', null=True, blank=True)
video = models.FileField("Видео", upload_to = "product/videos/", null=True, blank=True)
name_doc = models.CharField("Название", max_length=150, null=True, blank=True)
files = models.FileField("Документы", upload_to = "product/documents/", null=True, blank=True)
video_accept = models.BooleanField("Это видео")
doc_accept = models.BooleanField("Это документ")
doc_format = models.ForeignKey(Format, verbose_name='Формат файла', on_delete=models.DO_NOTHING)
demo_doc = models.ManyToManyField(Demo, verbose_name='Демо')
class Demo(models.Model):
demo_img = models.ImageField("Демо изображение", upload_to="product/documents/demo/", default='')