0.0.10 fix get_content_for_section_ajax
This commit is contained in:
@@ -5,6 +5,16 @@ from modeltranslation.admin import (TranslationAdmin,
|
||||
TranslationTabularInline,
|
||||
TranslationStackedInline)
|
||||
from copy import deepcopy
|
||||
from django.forms import widgets
|
||||
|
||||
|
||||
def sets_for_formfield_for_dbfield(field, db_field):
|
||||
if db_field.name == 'url' or db_field.name == 'name' or db_field.name == 'title' or db_field.name == 'name_plural':
|
||||
field.widget = widgets.TextInput(attrs={'style': 'width: 30%; height: 20px;'})
|
||||
if db_field.name == 'description':
|
||||
field.widget = widgets.Textarea(attrs={'style': 'width: 30%; height: 100px;'})
|
||||
return field
|
||||
|
||||
|
||||
class AdminStacked_FAQitem(Admin_GenericBaseIconStackedInline):
|
||||
from GeneralApp.models import FAQitem
|
||||
|
||||
Reference in New Issue
Block a user