# -*- encoding : utf-8 -*-
from django import forms
from django.forms.widgets import TextInput

from models import Conta
from models import Controle

from widgets import SelectMonthYearWidget


class ContaForm(forms.ModelForm):

    def __init__(self, *args, **kwargs):
        super(ContaForm, self).__init__(*args, **kwargs)
        self.fields['data_pagamento'].widget = TextInput(attrs={'class': 'datepicker'})

    class Meta:
        model = Conta
        exclude = ('controle')


class UploadContaForm(forms.ModelForm):
    arquivo = forms.FileField()

    class Meta:
        model = Conta


class ControleForm(forms.ModelForm):
    data = forms.DateField(widget=SelectMonthYearWidget())

    class Meta:
        model = Controle
        exclude = ('owner',)

2efc665d753facd89aded181865a3c003407a181
<mask token>


class UploadContaForm(forms.ModelForm):
    <mask token>


    class Meta:
        model = Conta


class ControleForm(forms.ModelForm):
    data = forms.DateField(widget=SelectMonthYearWidget())


    class Meta:
        model = Controle
        exclude = 'owner',

<mask token>


class ContaForm(forms.ModelForm):
    <mask token>


    class Meta:
        model = Conta
        exclude = 'controle'


class UploadContaForm(forms.ModelForm):
    arquivo = forms.FileField()


    class Meta:
        model = Conta


class ControleForm(forms.ModelForm):
    data = forms.DateField(widget=SelectMonthYearWidget())


    class Meta:
        model = Controle
        exclude = 'owner',

<mask token>


class ContaForm(forms.ModelForm):

    def __init__(self, *args, **kwargs):
        super(ContaForm, self).__init__(*args, **kwargs)
        self.fields['data_pagamento'].widget = TextInput(attrs={'class':
            'datepicker'})


    class Meta:
        model = Conta
        exclude = 'controle'


class UploadContaForm(forms.ModelForm):
    arquivo = forms.FileField()


    class Meta:
        model = Conta


class ControleForm(forms.ModelForm):
    data = forms.DateField(widget=SelectMonthYearWidget())


    class Meta:
        model = Controle
        exclude = 'owner',

from django import forms
from django.forms.widgets import TextInput
from models import Conta
from models import Controle
from widgets import SelectMonthYearWidget


class ContaForm(forms.ModelForm):

    def __init__(self, *args, **kwargs):
        super(ContaForm, self).__init__(*args, **kwargs)
        self.fields['data_pagamento'].widget = TextInput(attrs={'class':
            'datepicker'})


    class Meta:
        model = Conta
        exclude = 'controle'


class UploadContaForm(forms.ModelForm):
    arquivo = forms.FileField()


    class Meta:
        model = Conta


class ControleForm(forms.ModelForm):
    data = forms.DateField(widget=SelectMonthYearWidget())


    class Meta:
        model = Controle
        exclude = 'owner',

# -*- encoding : utf-8 -*-
from django import forms
from django.forms.widgets import TextInput

from models import Conta
from models import Controle

from widgets import SelectMonthYearWidget


class ContaForm(forms.ModelForm):

    def __init__(self, *args, **kwargs):
        super(ContaForm, self).__init__(*args, **kwargs)
        self.fields['data_pagamento'].widget = TextInput(attrs={'class': 'datepicker'})

    class Meta:
        model = Conta
        exclude = ('controle')


class UploadContaForm(forms.ModelForm):
    arquivo = forms.FileField()

    class Meta:
        model = Conta


class ControleForm(forms.ModelForm):
    data = forms.DateField(widget=SelectMonthYearWidget())

    class Meta:
        model = Controle
        exclude = ('owner',)
