Browse Source

Pequeno ajuste

pull/3359/head
eribeiro 5 years ago
parent
commit
cccb0232ad
  1. 2
      requirements/requirements.txt
  2. 3
      sapl/base/views.py

2
requirements/requirements.txt

@ -14,6 +14,7 @@ django-speedinfo==1.4.0
django-extensions==2.1.4
django-image-cropping==1.2
django-webpack-loader==0.6.0
django-ratelimit==3.0.1
drf-yasg==1.13.0
easy-thumbnails==2.5
python-decouple==3.1
@ -34,4 +35,3 @@ whitenoise==5.1.0
git+https://github.com/interlegis/trml2pdf
git+https://github.com/interlegis/django-admin-bootstrapped
django-ratelimit==3.0.1

3
sapl/base/views.py

@ -87,7 +87,8 @@ class IndexView(TemplateView):
@method_decorator(ratelimit(key='ip', rate='20/m',
method=ratelimit.UNSAFE, block=True), name='dispatch')
method=ratelimit.UNSAFE,
block=True), name='dispatch')
class LoginSapl(views.LoginView):
template_name = 'base/login.html'
authentication_form = LoginForm

Loading…
Cancel
Save