Change the widget used by the navbar element description

ref issue #1
This commit is contained in:
Rodolphe Breard 2018-02-25 14:36:38 +01:00
parent aa6e3bcc04
commit bd0c8ea904

View file

@ -1,9 +1,20 @@
from django.contrib import admin
from django import forms
from .models import Element, ElementDescription, ElementSeparator
class ElementDescriptionAdminForm(forms.ModelForm):
class Meta:
model = ElementDescription
widgets = {
'description': forms.widgets.Textarea,
}
fields = '__all__'
class ElementDescriptionInline(admin.StackedInline):
model = ElementDescription
form = ElementDescriptionAdminForm
extra = 2