Add: furaffinity forms.py

This commit is contained in:
Aroy-Art 2023-10-21 17:50:39 +02:00
parent 6092bbd0c7
commit 5177347241
Signed by: Aroy
GPG key ID: DB9689E9391DD156

View file

@ -0,0 +1,15 @@
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']