11 lines
317 B
Python
11 lines
317 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')
|