Skip to content
Browse files

Enlarges "name" field.

  • Loading branch information...
1 parent b959e07 commit 3369b469bef776b263540aca66ebaf0eb9be039b @BertrandBordage committed Aug 18, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 terms/forms.py
View
3 terms/forms.py
@@ -1,6 +1,6 @@
# coding: utf-8
-from django.forms import ModelForm, CharField, ValidationError
+from django.forms import ModelForm, TextInput, ValidationError
from .models import Term
from django.utils.translation import ugettext as _
from .settings import AVAILABLE_WIDGETS, TERMS_DEFINITION_WIDGET as WIDGET
@@ -31,5 +31,6 @@ def clean(self):
class Meta:
model = Term
widgets = {
+ 'name': TextInput(attrs={'size': 120}),
'definition': Textarea(),
}

0 comments on commit 3369b46

Please sign in to comment.
Something went wrong with that request. Please try again.