from django import forms
from emailform.models import Post


class PostForm(forms.ModelForm):
    class Meta:
        model = Post
        # exclude = ['author', 'updated', 'created', ]
        fields = ['first']
        widgets = {
            'first': forms.TextInput(
                attrs={'id': 'post-text', 'required': True, 'placeholder': 'First Name'}
            ),
            #'last': forms.TextInput(
            #    attrs={'id': 'post-text', 'required': True, 'placeholder': 'First Name'}
            #),
            #'email': forms.TextInput(
            #    attrs={'id': 'post-text', 'required': True, 'placeholder': 'First Name'}
            #),
        }

9fc026647fba8aefd8e4141a3cd11142b6ec3cbd
<mask token>

<mask token>


class PostForm(forms.ModelForm):


    class Meta:
        model = Post
        fields = ['first']
        widgets = {'first': forms.TextInput(attrs={'id': 'post-text',
            'required': True, 'placeholder': 'First Name'})}

from django import forms
from emailform.models import Post


class PostForm(forms.ModelForm):


    class Meta:
        model = Post
        fields = ['first']
        widgets = {'first': forms.TextInput(attrs={'id': 'post-text',
            'required': True, 'placeholder': 'First Name'})}

from django import forms
from emailform.models import Post


class PostForm(forms.ModelForm):
    class Meta:
        model = Post
        # exclude = ['author', 'updated', 'created', ]
        fields = ['first']
        widgets = {
            'first': forms.TextInput(
                attrs={'id': 'post-text', 'required': True, 'placeholder': 'First Name'}
            ),
            #'last': forms.TextInput(
            #    attrs={'id': 'post-text', 'required': True, 'placeholder': 'First Name'}
            #),
            #'email': forms.TextInput(
            #    attrs={'id': 'post-text', 'required': True, 'placeholder': 'First Name'}
            #),
        }
