On sépare import et renseignement à la main des événements
This commit is contained in:
@@ -23,6 +23,7 @@ from .models import (
|
||||
ModerationAnswer,
|
||||
ModerationQuestion,
|
||||
Place,
|
||||
Category,
|
||||
)
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
from string import ascii_uppercase as auc
|
||||
@@ -39,6 +40,13 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
class URLSubmissionForm(Form):
|
||||
url = URLField(max_length=512)
|
||||
category = ModelChoiceField(
|
||||
label=_("Category"),
|
||||
queryset=Category.objects.all().order_by("name"),
|
||||
empty_label=_("Unknown"),
|
||||
required=False,
|
||||
)
|
||||
|
||||
|
||||
|
||||
class DynamicArrayWidgetURLs(DynamicArrayWidget):
|
||||
|
||||
Reference in New Issue
Block a user