# make sure this is at the top if it isn't already
from django import forms
from blog.models import EMG

# our new form
class ContactForm(forms.Form):
    contact_name = forms.CharField(required=True)
    contact_email = forms.EmailField(required=True)
    content = forms.CharField(
        required=True,
        widget=forms.Textarea
    )
    def __init__(self, *args, **kwargs):
        super(ContactForm, self).__init__(*args, **kwargs)
        self.fields['contact_name'].label = "NOM:"
        self.fields['contact_email'].label = "EMAIL:"
        self.fields['content'].label = "MESSAGE"


class dataForm(forms.ModelForm):
    class Meta:
         
        model = EMG
        exclude = []
