Revision dda2e499 snf-astakos-app/astakos/im/target/local.py

b/snf-astakos-app/astakos/im/target/local.py
38 38
from django.contrib import messages
39 39
from django.utils.translation import ugettext as _
40 40
from django.views.decorators.csrf import csrf_exempt
41
from django.views.decorators.http import require_http_methods
41 42

  
42 43
from astakos.im.util import prepare_response, get_query
43 44
from astakos.im.views import requires_anonymous
......
50 51
retries = RATELIMIT_RETRIES_ALLOWED-1
51 52
rate = str(retries)+'/m'
52 53

  
54
@require_http_methods(["GET", "POST"])
53 55
@csrf_exempt
54 56
@requires_anonymous
55 57
@ratelimit(field='username', method='POST', rate=rate)

Also available in: Unified diff