Gallery-Archivist/archivist/sites/furaffinity/forms.py

15 lines
439 B
Python
Raw Permalink Normal View History

2023-10-21 17:50:39 +02:00
from django import forms
from .models import FA_Submission
class SearchForm(forms.Form):
search_query = forms.CharField(label='Search', max_length=100)
class URLImportForm(forms.Form):
url = forms.URLField(label='Post URL', required=True)
#class DateTimeForm(forms.ModelForm):
# class Meta:
# model = FA_Submission
# fields = ['submission_id', 'media_url', 'title', 'description', 'artist', 'date', 'species']