Commit ced67a13d78d59978d1b4f1f7c3876ef690ef79c
1 parent
52289976
Exists in
master
and in
2 other branches
Contrast view to create log
Showing
1 changed file
with
6 additions
and
1 deletions
Show diff stats
themes/views.py
... | ... | @@ -5,7 +5,7 @@ from django.core.urlresolvers import reverse, reverse_lazy |
5 | 5 | from django.utils.translation import ugettext_lazy as _ |
6 | 6 | from django.http import HttpResponse, JsonResponse, HttpResponseRedirect,HttpRequest |
7 | 7 | from django.shortcuts import redirect |
8 | - | |
8 | +from log.decorators import log_decorator | |
9 | 9 | from braces import views as braces_mixins |
10 | 10 | |
11 | 11 | from .models import Themes |
... | ... | @@ -79,3 +79,8 @@ class CSSStyleSettings(braces_mixins.LoginRequiredMixin, braces_mixins.Staffuser |
79 | 79 | context['settings_menu_active'] = "settings_menu_active" |
80 | 80 | |
81 | 81 | return context |
82 | + | |
83 | +@log_decorator("contrast", "click", "contrast") | |
84 | +def Contrast(request): | |
85 | + caminho = request.META.get('HTTP_REFERER') | |
86 | + return HttpResponseRedirect(caminho) | ... | ... |