File tree Expand file tree Collapse file tree 5 files changed +5
-3
lines changed Expand file tree Collapse file tree 5 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 6
6
from django_hosts .resolvers import reverse
7
7
8
8
from accounts .forms import DeleteProfileForm
9
- from foundation import models as foundationmodels
10
9
from tracdb .models import Revision , Ticket , TicketChange
11
10
from tracdb .testutils import TracDBCreateDatabaseMixin
12
11
Original file line number Diff line number Diff line change 1
1
from django .contrib import admin
2
- from django .utils .translation import gettext as _
3
2
4
3
from . import models
5
4
5
+
6
6
class CoreAwardAdmin (admin .ModelAdmin ):
7
7
list_display = ["recipient" , "cohort" ]
8
8
Original file line number Diff line number Diff line change 1
1
from django .db import models
2
2
from django .utils .translation import gettext_lazy as _
3
3
4
+
4
5
class CoreAwardCohort (models .Model ):
5
6
"""
6
7
A cohort of individuals -- such as "Q1 2021" -- receiving the Django Core
Original file line number Diff line number Diff line change 3
3
from django .contrib .sites .models import Site
4
4
from django .test import TestCase
5
5
6
+
6
7
class MeetingTestCase (TestCase ):
7
8
@classmethod
8
9
def setUpTestData (cls ):
@@ -15,7 +16,7 @@ def test_latest_meeting_minutes(self):
15
16
page = FlatPage .objects .create (
16
17
title = "Foundation" ,
17
18
url = "/foundation/" ,
18
- template_name = "flatpages/foundation.html"
19
+ template_name = "flatpages/foundation.html" ,
19
20
)
20
21
page .sites .add (self .site )
21
22
Original file line number Diff line number Diff line change 2
2
3
3
from . import models
4
4
5
+
5
6
class CoreDevelopers (generic .ListView ):
6
7
queryset = models .CoreAwardCohort .objects .prefetch_related ("recipients" ).order_by (
7
8
"-cohort_date"
You can’t perform that action at this time.
0 commit comments