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

# class LocationForm(forms.ModelForm):
#     class Meta:
#         model=Location
#         fields='__all__'

class ImageForm(forms.ModelForm):
    class Meta:
        model=Image
        exclude=['username','likes','profile_pic']


class ProfileForm(forms.ModelForm):
    class Meta:
        model=Profile
        exclude=['username']

class CommentForm(forms.ModelForm):
    class Meta:
        model=Comment
        exclude=['username','post']
        widgets = {
            'myfield': forms.TextInput(attrs={'class': 'myfieldclass'}),
        }
3748575bda53d35cdb47957b2825403bef63e018
<mask token>

<mask token>


class ProfileForm(forms.ModelForm):


    class Meta:
        model = Profile
        exclude = ['username']


class CommentForm(forms.ModelForm):


    class Meta:
        model = Comment
        exclude = ['username', 'post']
        widgets = {'myfield': forms.TextInput(attrs={'class': 'myfieldclass'})}

<mask token>


class ImageForm(forms.ModelForm):


    class Meta:
        model = Image
        exclude = ['username', 'likes', 'profile_pic']


class ProfileForm(forms.ModelForm):


    class Meta:
        model = Profile
        exclude = ['username']


class CommentForm(forms.ModelForm):


    class Meta:
        model = Comment
        exclude = ['username', 'post']
        widgets = {'myfield': forms.TextInput(attrs={'class': 'myfieldclass'})}

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


class ImageForm(forms.ModelForm):


    class Meta:
        model = Image
        exclude = ['username', 'likes', 'profile_pic']


class ProfileForm(forms.ModelForm):


    class Meta:
        model = Profile
        exclude = ['username']


class CommentForm(forms.ModelForm):


    class Meta:
        model = Comment
        exclude = ['username', 'post']
        widgets = {'myfield': forms.TextInput(attrs={'class': 'myfieldclass'})}

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

# class LocationForm(forms.ModelForm):
#     class Meta:
#         model=Location
#         fields='__all__'

class ImageForm(forms.ModelForm):
    class Meta:
        model=Image
        exclude=['username','likes','profile_pic']


class ProfileForm(forms.ModelForm):
    class Meta:
        model=Profile
        exclude=['username']

class CommentForm(forms.ModelForm):
    class Meta:
        model=Comment
        exclude=['username','post']
        widgets = {
            'myfield': forms.TextInput(attrs={'class': 'myfieldclass'}),
        }