+class DTITForm(forms.ModelForm):
+ class Meta:
+ model = models.DynamicTextInsertText
+ fields = '__all__'
+ widgets = {
+ 'background_color': forms.TextInput(attrs={"type": "color"}),
+ 'text_color': forms.TextInput(attrs={"type": "color"}),
+ }
+
+