from django import forms
from django.forms.widgets import HiddenInput

class PhotoUploadForm(forms.Form):
    file = forms.FileField(label="")
    upload_id = forms.CharField(required=False, label="", widget=forms.HiddenInput())
    


class PhotoUpdateForm(forms.Form):
    SEASON_CHOICES = (
        (0, 'Unknown'),
        (1, 'Winter'),
        (2, 'Spring'),
        (3, 'Summer'),
        (4, 'Fall'),
    )

    title = forms.CharField(max_length=48, required=False)
    description = forms.CharField(max_length=140, required=False)
    ranking = forms.IntegerField(required=False)
    taken_season = forms.IntegerField(widget=forms.Select(choices=SEASON_CHOICES), required=False)
    taken_year = forms.IntegerField(required=False)
    
    