Commit ac79db356e91b083dcd28f4eab6679902f6becff

Authored by Felipe Henrique de Almeida Bormann
1 parent 9f5eee53

added userstaffmixin to views and fixed font-family on card

amadeus/static/css/base/amadeus.css
... ... @@ -682,7 +682,7 @@ ul, li {
682 682 .category-course-link{
683 683 font-size: 16px;
684 684 color: #FFFFFF !important;
685   - font-family: Roboto Regular;
  685 + font-family: Roboto;
686 686 font-weight: normal;
687 687 }
688 688  
... ...
categories/views.py
... ... @@ -13,6 +13,7 @@ from django.contrib.auth.mixins import LoginRequiredMixin
13 13 from rolepermissions.mixins import HasRoleMixin
14 14 from .forms import CategoryForm
15 15  
  16 +from braces import views
16 17 from subjects.models import Subject
17 18  
18 19 class IndexView(LoginRequiredMixin, ListView):
... ... @@ -56,7 +57,7 @@ class IndexView(LoginRequiredMixin, ListView):
56 57  
57 58 return context
58 59  
59   -class CreateCategory(HasRoleMixin, CreateView):
  60 +class CreateCategory(views.SuperuserRequiredMixin, HasRoleMixin, CreateView):
60 61  
61 62 allowed_rules = ['system_admin']
62 63 login_url = reverse_lazy('users:login')
... ...