0.0.39 fix admin, change slider view
This commit is contained in:
@@ -12,7 +12,7 @@ from django.forms import widgets
|
||||
|
||||
|
||||
def sets_for_formfield_for_dbfield(field, db_field):
|
||||
if db_field.name in ['url', 'name', 'title', 'name_plural']:
|
||||
if db_field.name in ['url', 'name', 'title', 'name_plural', 'but1_url', 'but2_url']:
|
||||
field.widget = widgets.TextInput(attrs={'style': 'width: 30%; height: 20px;'})
|
||||
if db_field.name in ['description', 'text', 'video_url', 'bg_video_url']:
|
||||
field.widget = widgets.Textarea(attrs={'style': 'width: 30%; height: 100px;'})
|
||||
|
||||
Reference in New Issue
Block a user