aboutsummaryrefslogtreecommitdiffstats
path: root/layerindex/middleware.py
blob: 527cc8b0cec8a3928fc941f3100f77dda5bca803 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# layerindex-web - middleware definitions
#
# Copyright (C) 2019 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT

from django.utils.deprecation import MiddlewareMixin
from django.http import HttpResponseRedirect
from django.urls import reverse
from reversion.middleware import RevisionMiddleware
import settings
import re

class NonAtomicRevisionMiddleware(RevisionMiddleware):
    atomic = False