Skip to content

Commit

Permalink
Allow POST requests
Browse files Browse the repository at this point in the history
  • Loading branch information
jimfunk committed Feb 20, 2013
1 parent bb65333 commit 83fbce6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions django_object_actions/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ def get(self, request, **kwargs):
back = request.path.rsplit('/', 3)[0] + '/'
return HttpResponseRedirect(back)

# Allow POST
post = get

def message_user(self, request, message):
# copied from django.contrib.admin.options
# included to mimic admin actions
Expand Down

0 comments on commit 83fbce6

Please sign in to comment.