Skip to content

Instantly share code, notes, and snippets.

View Jean-Zombie's full-sized avatar
🖤

Jean Zombie Jean-Zombie

🖤
View GitHub Profile
@Jean-Zombie
Jean-Zombie / Wagtail FormBuilder + drf.md
Created October 18, 2021 08:00 — forked from Toshinaki/Wagtail FormBuilder + drf.md
create submissions to wagtail forms created with formbuilder, with django rest framework

Thanks to the friendly and detailed advice of @LB from Wagtail community (https://wagtail.io/slack/)

views.py

class FormSubmissionViewSet(mixins.CreateModelMixin, viewsets.GenericViewSet):
    """
    A viewset for viewing and editing contact form submissions.
    """

    serializer_class = FormSubmissionSerializer