mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #11694 - Remove obsolete SmallTextarea widget
This commit is contained in:
committed by
jeremystretch
parent
c8faca01f1
commit
8d68b6a2e6
@@ -2,7 +2,7 @@ from django import forms
|
||||
|
||||
from netbox.forms import NetBoxModelBulkEditForm
|
||||
from tenancy.models import *
|
||||
from utilities.forms import CommentField, DynamicModelChoiceField, SmallTextarea
|
||||
from utilities.forms import CommentField, DynamicModelChoiceField
|
||||
|
||||
__all__ = (
|
||||
'ContactBulkEditForm',
|
||||
@@ -106,7 +106,7 @@ class ContactBulkEditForm(NetBoxModelBulkEditForm):
|
||||
required=False
|
||||
)
|
||||
comments = CommentField(
|
||||
widget=SmallTextarea,
|
||||
widget=forms.Textarea,
|
||||
label='Comments'
|
||||
)
|
||||
|
||||
|
@@ -3,7 +3,7 @@ from django import forms
|
||||
from netbox.forms import NetBoxModelForm
|
||||
from tenancy.models import *
|
||||
from utilities.forms import (
|
||||
BootstrapMixin, CommentField, DynamicModelChoiceField, SlugField, SmallTextarea, StaticSelect,
|
||||
BootstrapMixin, CommentField, DynamicModelChoiceField, SlugField, StaticSelect,
|
||||
)
|
||||
|
||||
__all__ = (
|
||||
@@ -112,7 +112,7 @@ class ContactForm(NetBoxModelForm):
|
||||
'group', 'name', 'title', 'phone', 'email', 'address', 'link', 'description', 'comments', 'tags',
|
||||
)
|
||||
widgets = {
|
||||
'address': SmallTextarea(attrs={'rows': 3}),
|
||||
'address': forms.Textarea(attrs={'rows': 3}),
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user