from django import forms
from models import Image
from django.contrib.auth.models import User


class UploadImageForm(forms.ModelForm):
    class Meta:
        model = Image
        fields = ['title', 'file']
        widgets = {
            'file': forms.FileInput(attrs={'accept': 'image/*'}),
        }

class UserForm(forms.ModelForm):
    class Meta:
        model = User
        fields = ['username', 'email', 'password']
        widgets = {
            'password': forms.PasswordInput()
        }
81ac6c7b4942e96f17b9ee280e310e68f1dc143a
<mask token>

<mask token>


class UserForm(forms.ModelForm):


    class Meta:
        model = User
        fields = ['username', 'email', 'password']
        widgets = {'password': forms.PasswordInput()}

<mask token>


class UploadImageForm(forms.ModelForm):


    class Meta:
        model = Image
        fields = ['title', 'file']
        widgets = {'file': forms.FileInput(attrs={'accept': 'image/*'})}


class UserForm(forms.ModelForm):


    class Meta:
        model = User
        fields = ['username', 'email', 'password']
        widgets = {'password': forms.PasswordInput()}

from django import forms
from models import Image
from django.contrib.auth.models import User


class UploadImageForm(forms.ModelForm):


    class Meta:
        model = Image
        fields = ['title', 'file']
        widgets = {'file': forms.FileInput(attrs={'accept': 'image/*'})}


class UserForm(forms.ModelForm):


    class Meta:
        model = User
        fields = ['username', 'email', 'password']
        widgets = {'password': forms.PasswordInput()}

from django import forms
from models import Image
from django.contrib.auth.models import User


class UploadImageForm(forms.ModelForm):
    class Meta:
        model = Image
        fields = ['title', 'file']
        widgets = {
            'file': forms.FileInput(attrs={'accept': 'image/*'}),
        }

class UserForm(forms.ModelForm):
    class Meta:
        model = User
        fields = ['username', 'email', 'password']
        widgets = {
            'password': forms.PasswordInput()
        }