django templates input
This commit is contained in:
parent
1e022c5284
commit
b69116ee81
@ -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')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user