<filename>clone/forms.py<gh_stars>0
from .models import Image,Comment,Profile,Follow
from django.forms import ModelForm

class CreateProfileForm(ModelForm):
    class Meta:
        model = Profile
        exclude = ['created', 'account_holder', 'followers', 'following']
        
class UploadImageForm(ModelForm):
    class Meta :
        model = Image
        exclude = ['profile', 'post_date', 'likes']

class EditBioForm(ModelForm):
    class Meta:
        model = Profile
        exclude = ['user']

class FollowForm(ModelForm):
    class Meta:
        model = Follow
        exclude = ['followed', 'follower']

class UnfollowForm(ModelForm):
    class Meta:
        model = Follow
        exclude = ['followed', 'follower']