17 lines
579 B
Python
17 lines
579 B
Python
from django.utils.translation import gettext_lazy as _
|
|
from wagtail.admin.viewsets.chooser import ChooserViewSet
|
|
|
|
|
|
class EventOrganizerChooserViewSet(ChooserViewSet):
|
|
model = "events.EventOrganizer"
|
|
icon = "group"
|
|
per_page = 30
|
|
page_title = _("Choose organizers")
|
|
choose_one_text = _("Choose an organizer")
|
|
choose_another_text = _("Choose another organizer")
|
|
edit_item_text = _("Edit this organizer")
|
|
form_fields = ["name", "association", "external_url"]
|
|
|
|
|
|
event_organizer_chooser_viewset = EventOrganizerChooserViewSet("event_organizer_chooser")
|