Delete in memberresource returns 204: No Content.

This commit is contained in:
Robert Kolner committed 2013-06-05 19:59:38 +02:00
1 parent 3e809931c3
commit cc384c4409
1 file changed
+2 -2
+2 -2
View File
@@ -2,7 +2,7 @@ from django.contrib.auth.models import User
from tastypie import fields
from tastypie.authorization import Authorization
from tastypie.exceptions import ImmediateHttpResponse
from tastypie.http import HttpForbidden
from tastypie.http import HttpForbidden, HttpNoContent
from tastypie.resources import ModelResource, ALL
from dusken.models import *
@@ -72,4 +72,4 @@ class MemberResource(ModelResource):
member = Member.objects.get(kwargs['pk'])
member.is_active = False
member.save()
return 204
return HttpNoContent()