default asset
This commit is contained in:
parent
4158325b85
commit
9e5669dccc
Binary file not shown.
@ -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()
|
||||||
pic_local = request.FILES['file']
|
if request.FILES:
|
||||||
|
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,
|
||||||
|
BIN
SocialHelper/media/images/basic.png
Normal file
BIN
SocialHelper/media/images/basic.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
Loading…
Reference in New Issue
Block a user