django templates input

This commit is contained in:
zakhy 2025-02-19 11:14:20 +07:00
parent 1e022c5284
commit b69116ee81

View File

@ -4,6 +4,11 @@ from apps.main.models.model_static_layer import StaticLayer
class StaticLayerForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.fields['name'].widget.attrs.update(
{'class': 'form-control', 'placeholder': 'Введите имя слоя'})
class Meta:
model = StaticLayer
fields = ('name', 'file')