from django import forms
from .models import Profile, Image, Comment, Follow, Like

class NewProfileForm(forms.ModelForm):
    class Meta:
        model = Profile
        exclude = ['created', 'account_holder', 'followers', 'following']

class NewImageForm(forms.ModelForm):
    class Meta:
        model = Image
        exclude = ['posted', 'profile', 'likes']

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

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

class NewLikeForm(forms.ModelForm):
    class Meta:
        model = Like
        exclude = ['image', 'profile']

class NewUnlikeForm(forms.ModelForm):
    class Meta:
        model = Like
        exclude = ['image', 'profile']


class NewCommentForm(forms.ModelForm):
    class Meta:
        model = Comment
        exclude = ['posted', 'image', 'commented_by']
