Added product pictures

This commit is contained in:
Raphael Michel
2015-07-25 23:58:02 +02:00
parent 8732e92cde
commit 0cbf9aeec3
8 changed files with 49 additions and 1 deletions

View File

@@ -128,6 +128,7 @@ class ItemFormGeneral(VersionedModelForm):
'admission',
'short_description',
'long_description',
'picture',
'default_price',
'tax_rate',
'properties',

View File

@@ -2,7 +2,7 @@
{% load i18n %}
{% load bootstrap3 %}
{% block inside %}
<form action="" method="post" class="form-horizontal">
<form action="" method="post" class="form-horizontal" enctype="multipart/form-data">
{% csrf_token %}
<fieldset>
<legend>{% trans "General information" %}</legend>
@@ -12,6 +12,7 @@
{% bootstrap_field form.admission layout="horizontal" %}
{% bootstrap_field form.short_description layout="horizontal" %}
{% bootstrap_field form.long_description layout="horizontal" %}
{% bootstrap_field form.picture layout="horizontal" %}
</fieldset>
<fieldset>
<legend>{% trans "Price settings" %}</legend>