default asset

This commit is contained in:
Jędrzej Klepacki 2020-12-10 22:51:09 +01:00
parent 4158325b85
commit 9e5669dccc
3 changed files with 4 additions and 1 deletions

View File

@ -86,7 +86,10 @@ def Dodawanie(request):
script_local = request.POST['script'] script_local = request.POST['script']
title_local = request.POST['title'] title_local = request.POST['title']
data_local = timezone.now() data_local = timezone.now()
if request.FILES:
pic_local = request.FILES['file'] pic_local = request.FILES['file']
else:
pic_local = "/images/basic.png"
offer_local = request.POST['offer'] offer_local = request.POST['offer']
product = Product( product = Product(
picture = pic_local, picture = pic_local,

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB