15 lines
338 B
Python
15 lines
338 B
Python
# -*- coding: utf-8 -*-
|
|
from django import forms
|
|
|
|
from apps.geoproc.models.model_obstation import ObStation
|
|
|
|
|
|
class ObStationForm(forms.ModelForm):
|
|
name = forms.CharField(
|
|
widget=forms.TextInput(attrs={"class": "form-control", "autofocus": ""})
|
|
)
|
|
|
|
class Meta:
|
|
model = ObStation
|
|
fields = ("id", "name")
|