Skip to content

Commit

Permalink
ruff fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GDay committed Mar 29, 2024
1 parent a168ae4 commit ed9f224
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion back/admin/people/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2780,7 +2780,6 @@ def test_employee_toggle_hardware(
assert not employee1.resources.filter(id=hardware1.id).exists()



@pytest.mark.django_db
def test_visibility_import_employees_button(
client,
Expand Down
6 changes: 2 additions & 4 deletions back/admin/people/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from rest_framework.authentication import SessionAuthentication

from admin.admin_tasks.models import AdminTask
from admin.hardware.models import Hardware
from admin.integrations.exceptions import (
DataIsNotJSONError,
FailedPaginatedResponseError,
Expand All @@ -34,7 +35,6 @@
LoginRequiredMixin,
ManagerPermMixin,
)
from admin.hardware.models import Hardware
from users.models import ToDoUser

from .forms import (
Expand Down Expand Up @@ -125,9 +125,7 @@ class ColleagueHardwareView(LoginRequiredMixin, ManagerPermMixin, DetailView):
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
user = context["object"]
context["title"] = _("Add new hardware for %(name)s") % {
"name": user.full_name
}
context["title"] = _("Add new hardware for %(name)s") % {"name": user.full_name}
context["subtitle"] = _("Employee")
context["object_list"] = Hardware.templates.all()
return context
Expand Down

0 comments on commit ed9f224

Please sign in to comment.