Added descriptions to item categories

This commit is contained in:
Raphael Michel
2016-04-21 21:48:53 +02:00
parent 38f0e6e6d6
commit 765ae39fa0
5 changed files with 38 additions and 2 deletions

View File

@@ -16,7 +16,8 @@ class CategoryForm(I18nModelForm):
model = ItemCategory
localized_fields = '__all__'
fields = [
'name'
'name',
'description'
]

View File

@@ -10,6 +10,7 @@
<fieldset>
<legend>{% trans "General information" %}</legend>
{% bootstrap_field form.name layout="horizontal" %}
{% bootstrap_field form.description layout="horizontal" %}
</fieldset>
<div class="form-group submit-group">
<button type="submit" class="btn btn-primary btn-save">