Not sure, but start by removing the "enforce_csrf_checks=True" from your test case. That's almost certainly not what you want.
-- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.