Ensure CSRF token on AJAX views.
Decorate class-based views correctly.
added Post serializer