Commit 9ece37d5012a8b3e330f013cd87e9b199b93fbe7
1 parent
401f2719
Exists in
master
and in
5 other branches
Removing old log calls [Issue: #231]
Showing
2 changed files
with
3 additions
and
12 deletions
Show diff stats
app/views.py
... | ... | @@ -4,17 +4,14 @@ from django.views import View |
4 | 4 | from rolepermissions.mixins import HasRoleMixin |
5 | 5 | from django.contrib.auth.mixins import LoginRequiredMixin |
6 | 6 | from django.core.urlresolvers import reverse_lazy |
7 | -from core.mixins import LogMixin, NotificationMixin | |
7 | +from core.mixins import NotificationMixin | |
8 | 8 | from core.models import Notification, Action, Resource, Action_Resource |
9 | 9 | from users.models import User |
10 | 10 | from .models import EmailBackend |
11 | 11 | from .forms import EmailBackendForm |
12 | 12 | from courses.models import Course |
13 | 13 | |
14 | -class AppIndex(LoginRequiredMixin, LogMixin, ListView, NotificationMixin): | |
15 | - log_action = "Acessar" | |
16 | - log_resource = "Home" | |
17 | - | |
14 | +class AppIndex(LoginRequiredMixin, ListView, NotificationMixin): | |
18 | 15 | login_url = reverse_lazy("core:home") |
19 | 16 | redirect_field_name = 'next' |
20 | 17 | |
... | ... | @@ -46,7 +43,7 @@ class AppIndex(LoginRequiredMixin, LogMixin, ListView, NotificationMixin): |
46 | 43 | |
47 | 44 | return self.response_class(request = self.request, template = self.template_name, context = context, using = self.template_engine, **response_kwargs) |
48 | 45 | |
49 | -class AmadeusSettings(LoginRequiredMixin, HasRoleMixin, View): | |
46 | +class AmadeusSettings(LoginRequiredMixin, HasRoleMixin, View): | |
50 | 47 | allowed_roles = ['system_admin'] |
51 | 48 | login_url = reverse_lazy("core:home") |
52 | 49 | redirect_field_name = 'next' | ... | ... |
core/views.py
... | ... | @@ -68,7 +68,6 @@ def remember_password(request): |
68 | 68 | context['danger'] = 'E-mail does not send' |
69 | 69 | return render(request, "remember_password.html",context) |
70 | 70 | |
71 | -@log_decorator('Acessar', 'Sistema') | |
72 | 71 | def login(request): |
73 | 72 | context = {} |
74 | 73 | |
... | ... | @@ -87,17 +86,12 @@ def login(request): |
87 | 86 | |
88 | 87 | return render(request,"index.html",context) |
89 | 88 | |
90 | - | |
91 | - | |
92 | 89 | def processNotification(self, notificationId): |
93 | 90 | notification = Notification.objects.get(id= notificationId) |
94 | 91 | notification.read = True |
95 | 92 | notification.save() |
96 | 93 | return redirect(notification.action_resource.resource.url) |
97 | 94 | |
98 | - | |
99 | - | |
100 | - | |
101 | 95 | def getNotifications(request): |
102 | 96 | context = {} |
103 | 97 | if request.user.is_authenticated: | ... | ... |