Compare commits

...

2 commits

Author SHA1 Message Date
5177347241
Add: furaffinity forms.py 2023-10-21 17:50:39 +02:00
6092bbd0c7
Add: furaffinity app config 2023-10-21 17:50:17 +02:00
3 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,2 @@
# __init__.py

View file

@ -0,0 +1,6 @@
from django.apps import AppConfig
class FuraffinityConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'sites.furaffinity'

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']