pyfedi/app/dev/forms.py

22 lines
769 B
Python
Raw Normal View History

2024-08-08 09:29:45 -04:00
from flask import request, g
from flask_login import current_user
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, TextAreaField, BooleanField, HiddenField, SelectField, FileField
from wtforms.validators import ValidationError, DataRequired, Email, EqualTo, Length, Optional
from flask_babel import _, lazy_gettext as _l
from app import db
class AddTestCommunities(FlaskForm):
2024-08-09 13:29:54 -04:00
communities_submit = SubmitField(_l('Populate Communities'))
2024-08-09 10:57:46 -04:00
class AddTestTopics(FlaskForm):
2024-08-09 13:29:54 -04:00
topics_submit = SubmitField(_l('Populate Topics'))
class DeleteTestCommunities(FlaskForm):
delete_communities_submit = SubmitField(_l('Delete Communities'))
class DeleteTestTopics(FlaskForm):
delete_topics_submit = SubmitField(_l('Delete Topics'))