0.0.32 video links and change font
This commit is contained in:
@@ -14,8 +14,10 @@ from django.forms import widgets
|
||||
def sets_for_formfield_for_dbfield(field, db_field):
|
||||
if db_field.name in ['url', 'name', 'title', 'name_plural']:
|
||||
field.widget = widgets.TextInput(attrs={'style': 'width: 30%; height: 20px;'})
|
||||
if db_field.name in ['description', 'text']:
|
||||
if db_field.name in ['description', 'text', 'video_url', 'bg_video_url']:
|
||||
field.widget = widgets.Textarea(attrs={'style': 'width: 30%; height: 100px;'})
|
||||
if db_field.name in ['video_url', 'bg_video_url']:
|
||||
field.widget = widgets.TextInput(attrs={'style': 'width: 90%; '})
|
||||
return field
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user