Skip to content

Commit

Permalink
Lint and test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cez02 committed Jan 5, 2025
1 parent 7184865 commit 9caab7d
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions zapisy/apps/effects/models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from typing import Set

from django.db import models

from apps.enrollment.courses.models.course_instance import CourseInstance
Expand Down
1 change: 0 additions & 1 deletion zapisy/apps/enrollment/courses/admin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from django.contrib import admin, messages
from django.contrib.admin import SimpleListFilter

from apps.enrollment.courses.models.classroom import Classroom
from apps.enrollment.courses.models.course_instance import CourseInstance
Expand Down
3 changes: 1 addition & 2 deletions zapisy/apps/offer/proposal/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
@admin.register(Proposal)
class ProposalAdmin(admin.ModelAdmin):
list_filter = ('status', 'semester', 'course_type', ('owner', admin.RelatedOnlyFieldListFilter),
'modified', 'tags', ('courseinstance__semester',
admin.RelatedOnlyFieldListFilter))
'modified', 'tags', ('courseinstance__semester', admin.RelatedOnlyFieldListFilter))
list_display = ('name', 'owner', 'course_type', 'semester', 'status', 'modified',
'last_semester')
search_fields = ('name', 'name_en')
Expand Down
2 changes: 1 addition & 1 deletion zapisy/apps/offer/vote/tests/test_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def test_form_view(self):

# Number of queries should not change when we add one more proposal.
ProposalFactory(status=ProposalStatus.IN_VOTE)
with self.assertNumQueries(18):
with self.assertNumQueries(16):
response = c.get(reverse('vote'))
self.assertContains(response, '<select', count=7)

Expand Down
1 change: 0 additions & 1 deletion zapisy/apps/users/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from apps.enrollment.courses.models import Group, Semester
from apps.enrollment.records.models import GroupOpeningTimes, Record, RecordStatus, T0Times
from apps.effects.models import CompletedCourses
from apps.enrollment.timetable.views import build_group_list
from apps.grade.ticket_create.models.student_graded import StudentGraded
from apps.notifications.views import create_form
Expand Down

0 comments on commit 9caab7d

Please sign in to comment.