Skip to content

Commit ba76320

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent cb79e0f commit ba76320

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

foundation/admin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
from . import models
55

6+
67
class CoreAwardAdmin(admin.ModelAdmin):
78
list_display = ["recipient", "cohort"]
89

foundation/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from django.db import models
22
from django.utils.translation import gettext_lazy as _
33

4+
45
class CoreAwardCohort(models.Model):
56
"""
67
A cohort of individuals -- such as "Q1 2021" -- receiving the Django Core

foundation/tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from django.contrib.sites.models import Site
44
from django.test import TestCase
55

6+
67
class MeetingTestCase(TestCase):
78
@classmethod
89
def setUpTestData(cls):
@@ -15,7 +16,7 @@ def test_latest_meeting_minutes(self):
1516
page = FlatPage.objects.create(
1617
title="Foundation",
1718
url="/foundation/",
18-
template_name="flatpages/foundation.html"
19+
template_name="flatpages/foundation.html",
1920
)
2021
page.sites.add(self.site)
2122

foundation/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from . import models
44

5+
56
class CoreDevelopers(generic.ListView):
67
queryset = models.CoreAwardCohort.objects.prefetch_related("recipients").order_by(
78
"-cohort_date"

0 commit comments

Comments
 (0)