from django import forms
from django.forms import ModelForm
from expenses.models import Room, Appliance, ElectricityUsage, WaterUsage


class RoomForm(ModelForm):


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


class ApplianceForm(ModelForm):


    class Meta:
        model = Appliance
        fields = ['type', 'make', 'model', 'year', 'uses_electricity',
            'uses_water', 'uses_gas']


class ElectricityUsageForm(ModelForm):


    class Meta:
        model = ElectricityUsage
        fields = ['watts', 'time_minutes', 'occurrences_per_week']


class WaterUsageForm(ModelForm):


    class Meta:
        model = WaterUsage
        fields = ['litres', 'occurrences_per_week']

212150ddac7ddd68ce87da704aefb46ea2f4c90f
<mask token>


class WaterUsageForm(ModelForm):


    class Meta:
        model = WaterUsage
        fields = ['litres', 'occurrences_per_week']

<mask token>


class ApplianceForm(ModelForm):


    class Meta:
        model = Appliance
        fields = ['type', 'make', 'model', 'year', 'uses_electricity',
            'uses_water', 'uses_gas']


class ElectricityUsageForm(ModelForm):


    class Meta:
        model = ElectricityUsage
        fields = ['watts', 'time_minutes', 'occurrences_per_week']


class WaterUsageForm(ModelForm):


    class Meta:
        model = WaterUsage
        fields = ['litres', 'occurrences_per_week']

<mask token>


class RoomForm(ModelForm):


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


class ApplianceForm(ModelForm):


    class Meta:
        model = Appliance
        fields = ['type', 'make', 'model', 'year', 'uses_electricity',
            'uses_water', 'uses_gas']


class ElectricityUsageForm(ModelForm):


    class Meta:
        model = ElectricityUsage
        fields = ['watts', 'time_minutes', 'occurrences_per_week']


class WaterUsageForm(ModelForm):


    class Meta:
        model = WaterUsage
        fields = ['litres', 'occurrences_per_week']

from django import forms
from django.forms import ModelForm
from expenses.models import Room, Appliance, ElectricityUsage, WaterUsage


class RoomForm(ModelForm):


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


class ApplianceForm(ModelForm):


    class Meta:
        model = Appliance
        fields = ['type', 'make', 'model', 'year', 'uses_electricity',
            'uses_water', 'uses_gas']


class ElectricityUsageForm(ModelForm):


    class Meta:
        model = ElectricityUsage
        fields = ['watts', 'time_minutes', 'occurrences_per_week']


class WaterUsageForm(ModelForm):


    class Meta:
        model = WaterUsage
        fields = ['litres', 'occurrences_per_week']
