Beispiel #1
0
 class Meta:
     widgets = {
         'title': forms.Textarea(attrs={'class': 'span12'}),
         'title_en': forms.Textarea(attrs={'class': 'span12'}),
         'title_es': forms.Textarea(attrs={'class': 'span12'}),
         'content': AdminMarkupTextareaWidget(attrs={'class': 'span12'}),
         'content_es': AdminMarkupTextareaWidget(attrs={'class': 'span12'}),
         'content_en': AdminMarkupTextareaWidget(attrs={'class': 'span12'}),
     }
Beispiel #2
0
 class Meta:
     model = Speaker
     fields = ["name", "email", "biography", "photo"]
     widgets = {
         "biography":
         AdminMarkupTextareaWidget(attrs={"class": "form-control"}),
         "name": forms.TextInput(attrs={"class": "form-control"}),
     }
Beispiel #3
0
 def test_model_admin_render(self):
     from django.utils.translation import ugettext_lazy as _
     w = AdminMarkupTextareaWidget()
     assert w.render(_('body'), _('Body'))
Beispiel #4
0
 def test_model_admin_render(self):
     from django.utils.translation import ugettext_lazy as _
     w = AdminMarkupTextareaWidget()
     assert w.render(_('body'), _('Body'))