from django import forms
from .models import *
from django.urls import reverse_lazy


class PhotoForm(forms.ModelForm):
    # Add the image field to the form
    image = forms.ImageField(label='Select an image', required=True)

    class Meta:
        model = Images
        fields = ['image']