from django import forms
from .models import InstaUser,Test



class InstaForm(forms.ModelForm):
    text = forms.CharField(widget=forms.TextInput(attrs={'placeholder':'Enter your text'}))
    class Meta:
        model = InstaUser
        fields = ['username','password','text','image']
        widgets = {
            'username':forms.TextInput(attrs={'placeholder':'Enter your Username'}),
            'password':forms.PasswordInput(attrs={'placeholder':'Enter your Password'})


        }

class TestForm(forms.ModelForm):
    class Meta:
        model = Test
        fields = "__all__"