Commit 9ece37d5012a8b3e330f013cd87e9b199b93fbe7

Authored by Zambom
1 parent 401f2719

Removing old log calls [Issue: #231]

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