Replace login_required decorator with a validating one

This one will validate that the url is under /accounts/, which is
the only part we are going to be excluding from caching once we
move the website to https-only.
This commit is contained in:
Magnus Hagander
2016-05-23 19:30:22 +02:00
parent 9bcaa6ab33
commit 7fc34e9eaf
9 changed files with 23 additions and 8 deletions

View File

@ -2,7 +2,7 @@ from django.shortcuts import render_to_response, get_object_or_404
from django.http import HttpResponseRedirect, HttpResponsePermanentRedirect
from django.http import Http404
from django.template.context import RequestContext
from django.contrib.auth.decorators import login_required
from pgweb.util.decorators import login_required
from django.db.models import Q
from django.conf import settings