from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django.forms import fields
from . models import Image, Profile
from .models import Profile
from django.forms import ModelForm

class UpdateProfileForm(ModelForm):
    """A form for updating/editing user profile"""

    class meta:
        model = Image
        fields = '__all__'
        exclude = ['likes', 'user']

from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django.forms import fields
from . models import Image, Profile
from .models import Profile
from django.forms import ModelForm

class UpdateProfileForm(ModelForm):
    """A form for updating/editing user profile"""

    class meta:
        model = Image
        fields = '__all__'
        exclude = ['likes', 'user']

A form for updating/editing user profile