0.0.32 video links and change font

This commit is contained in:
SDE
2023-12-06 13:59:15 +03:00
parent 183000c979
commit 1f2c47410a
20 changed files with 116 additions and 56 deletions

View File

@@ -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