from django import forms
from .models import Site, MeteoData


class SiteForm(forms.ModelForm):


    class Meta:
        model = Site
        fields = ['name']


class MeteoDataForm(forms.ModelForm):


    class Meta:
        model = MeteoDataForm
        fields = ['site', 'date', 'pression', 'temp', 'humidity', 'wind',
            'rain', 'co2']

ab0adc366933a3cd743f15aaaab94b8a8d907c8a
<mask token>

<mask token>


class MeteoDataForm(forms.ModelForm):


    class Meta:
        model = MeteoDataForm
        fields = ['site', 'date', 'pression', 'temp', 'humidity', 'wind',
            'rain', 'co2']

<mask token>


class SiteForm(forms.ModelForm):


    class Meta:
        model = Site
        fields = ['name']


class MeteoDataForm(forms.ModelForm):


    class Meta:
        model = MeteoDataForm
        fields = ['site', 'date', 'pression', 'temp', 'humidity', 'wind',
            'rain', 'co2']

from django import forms
from .models import Site, MeteoData


class SiteForm(forms.ModelForm):


    class Meta:
        model = Site
        fields = ['name']


class MeteoDataForm(forms.ModelForm):


    class Meta:
        model = MeteoDataForm
        fields = ['site', 'date', 'pression', 'temp', 'humidity', 'wind',
            'rain', 'co2']
