We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Please include project name in certifying org admin
<img width="895" alt="image" src="https://user-images.githubusercontent.com/178003/67474466-6ab98000-f64c-11e9-8a69-95e12e8bd404.png">


We have two Kartoza entries there - one for InaSAFE and one for QGIS - I nearly deleted the first not realising it was for InaSAFE

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `django_project/certification/admin.py`
Content:
```
1 # coding=UTF-8
2 """Model admin class definitions."""
3 
4 from django.contrib.gis import admin
5 from simple_history.admin import SimpleHistoryAdmin
6 from certification.models.certificate import Certificate
7 from certification.models.course import Course
8 from certification.models.training_center import TrainingCenter
9 from certification.models.course_convener import CourseConvener
10 from certification.models.course_type import CourseType
11 from certification.models.attendee import Attendee
12 from certification.models.course_attendee import CourseAttendee
13 from certification.models.certifying_organisation import CertifyingOrganisation
14 from certification.models.organisation_certificate import \
15     CertifyingOrganisationCertificate
16 from certification.models.status import Status
17 
18 
19 class CertificateAdmin(admin.ModelAdmin):
20     """Certificate admin model."""
21 
22     list_display = ('__unicode__', 'course')
23     search_fields = ('certificateID', 'course__name',)
24 
25     def queryset(self, request):
26         """Ensure we use the correct manager.
27 
28         :param request: HttpRequest object
29         """
30         query_set = self.model.objects
31         ordering = self.get_ordering(request)
32         if ordering:
33             query_set = query_set.order_by(*ordering)
34         return query_set
35 
36 
37 class AttendeeAdmin(admin.ModelAdmin):
38     """Attendee admin model."""
39     list_display = ('firstname', 'surname', 'email', 'certifying_organisation')
40     search_fields = ['firstname', 'surname']
41 
42     def queryset(self, request):
43         """Ensure we use the correct manager.
44 
45         :param request: HttpRequest object
46         """
47         query_set = self.model.objects
48         ordering = self.get_ordering(request)
49         if ordering:
50             query_set = query_set.order_by(*ordering)
51         return query_set
52 
53 
54 class CourseAttendeeAdmin(admin.ModelAdmin):
55     """Certificate admin model."""
56     list_display = ('course', 'attendee', 'author')
57 
58     def queryset(self, request):
59         """Ensure we use the correct manager.
60 
61         :param request: HttpRequest object
62         """
63         query_set = self.model.objects
64         ordering = self.get_ordering(request)
65         if ordering:
66             query_set = query_set.order_by(*ordering)
67         return query_set
68 
69 
70 class CourseAdmin(admin.ModelAdmin):
71     """Course admin model."""
72 
73     def queryset(self, request):
74         """Ensure we use the correct manager.
75 
76         :param request: HttpRequest object
77         """
78         query_set = self.model.objects
79         ordering = self.get_ordering(request)
80         if ordering:
81             query_set = query_set.order_by(*ordering)
82         return query_set
83 
84 
85 class CourseTypeAdmin(admin.ModelAdmin):
86     """Course type admin model."""
87 
88     def queryset(self, request):
89         """Ensure we use the correct manager.
90 
91         :param request: HttpRequest object
92         """
93         query_set = self.model.objects
94         ordering = self.get_ordering(request)
95         if ordering:
96             query_set = query_set.order_by(*ordering)
97         return query_set
98 
99 
100 class TrainingCenterAdmin(admin.GeoModelAdmin):
101     """Training center admin model."""
102 
103     def queryset(self, request):
104         """Ensure we use the correct manager.
105 
106         :param request: HttpRequest object
107         """
108         query_set = self.model.objects
109         ordering = self.get_ordering(request)
110         if ordering:
111             query_set = query_set.order_by(*ordering)
112         return query_set
113 
114 
115 class CourseConvenerAdmin(admin.ModelAdmin):
116     """Course convener admin model."""
117 
118     def queryset(self, request):
119         """Ensure we use the correct manager.
120 
121         :param request: HttpRequest object
122         """
123         query_set = self.model.objects
124         ordering = self.get_ordering(request)
125         if ordering:
126             query_set = query_set.order_by(*ordering)
127         return query_set
128 
129 
130 class CertifyingOrganisationCertificateAdminInline(admin.TabularInline):
131     model = CertifyingOrganisationCertificate
132     extra = 0
133 
134 
135 class CertifyingOrganisationCertificateAdmin(SimpleHistoryAdmin):
136     history_list_display = ['issued', 'valid']
137 
138 
139 class CertifyingOrganisationAdmin(SimpleHistoryAdmin):
140     """Certifying organisation admin model."""
141 
142     filter_horizontal = ('organisation_owners',)
143     search_fields = ['name']
144     list_display = ('name', 'country', 'approved', 'rejected')
145     list_filter = ('country', 'approved', 'rejected', 'status')
146     inlines = (CertifyingOrganisationCertificateAdminInline, )
147     history_list_display = ['status', 'remarks']
148 
149     def queryset(self, request):
150         """Ensure we use the correct manager.
151 
152         :param request: HttpRequest object
153         """
154         query_set = self.model.objects
155         ordering = self.get_ordering(request)
156         if ordering:
157             query_set = query_set.order_by(*ordering)
158         return query_set
159 
160 
161 class StatusAdmin(admin.ModelAdmin):
162     list_display = ('name', 'project', 'order')
163 
164 
165 admin.site.register(Certificate, CertificateAdmin)
166 admin.site.register(Attendee, AttendeeAdmin)
167 admin.site.register(Course, CourseAdmin)
168 admin.site.register(CourseType, CourseTypeAdmin)
169 admin.site.register(TrainingCenter, TrainingCenterAdmin)
170 admin.site.register(CourseConvener, CourseConvenerAdmin)
171 admin.site.register(CertifyingOrganisation, CertifyingOrganisationAdmin)
172 admin.site.register(CourseAttendee, CourseAttendeeAdmin)
173 admin.site.register(
174     CertifyingOrganisationCertificate, CertifyingOrganisationCertificateAdmin)
175 admin.site.register(Status, StatusAdmin)
176
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/django_project/certification/admin.py b/django_project/certification/admin.py
--- a/django_project/certification/admin.py
+++ b/django_project/certification/admin.py
@@ -141,7 +141,7 @@
 
     filter_horizontal = ('organisation_owners',)
     search_fields = ['name']
-    list_display = ('name', 'country', 'approved', 'rejected')
+    list_display = ('name', 'project', 'country', 'approved', 'rejected')
     list_filter = ('country', 'approved', 'rejected', 'status')
     inlines = (CertifyingOrganisationCertificateAdminInline, )
     history_list_display = ['status', 'remarks']

{"golden_diff": "diff --git a/django_project/certification/admin.py b/django_project/certification/admin.py\n--- a/django_project/certification/admin.py\n+++ b/django_project/certification/admin.py\n@@ -141,7 +141,7 @@\n \n     filter_horizontal = ('organisation_owners',)\n     search_fields = ['name']\n-    list_display = ('name', 'country', 'approved', 'rejected')\n+    list_display = ('name', 'project', 'country', 'approved', 'rejected')\n     list_filter = ('country', 'approved', 'rejected', 'status')\n     inlines = (CertifyingOrganisationCertificateAdminInline, )\n     history_list_display = ['status', 'remarks']\n", "issue": "Please include project name in certifying org admin\n<img width=\"895\" alt=\"image\" src=\"https://user-images.githubusercontent.com/178003/67474466-6ab98000-f64c-11e9-8a69-95e12e8bd404.png\">\r\n\r\n\r\nWe have two Kartoza entries there - one for InaSAFE and one for QGIS - I nearly deleted the first not realising it was for InaSAFE\n", "before_files": [{"content": "# coding=UTF-8\n\"\"\"Model admin class definitions.\"\"\"\n\nfrom django.contrib.gis import admin\nfrom simple_history.admin import SimpleHistoryAdmin\nfrom certification.models.certificate import Certificate\nfrom certification.models.course import Course\nfrom certification.models.training_center import TrainingCenter\nfrom certification.models.course_convener import CourseConvener\nfrom certification.models.course_type import CourseType\nfrom certification.models.attendee import Attendee\nfrom certification.models.course_attendee import CourseAttendee\nfrom certification.models.certifying_organisation import CertifyingOrganisation\nfrom certification.models.organisation_certificate import \\\n    CertifyingOrganisationCertificate\nfrom certification.models.status import Status\n\n\nclass CertificateAdmin(admin.ModelAdmin):\n    \"\"\"Certificate admin model.\"\"\"\n\n    list_display = ('__unicode__', 'course')\n    search_fields = ('certificateID', 'course__name',)\n\n    def queryset(self, request):\n        \"\"\"Ensure we use the correct manager.\n\n        :param request: HttpRequest object\n        \"\"\"\n        query_set = self.model.objects\n        ordering = self.get_ordering(request)\n        if ordering:\n            query_set = query_set.order_by(*ordering)\n        return query_set\n\n\nclass AttendeeAdmin(admin.ModelAdmin):\n    \"\"\"Attendee admin model.\"\"\"\n    list_display = ('firstname', 'surname', 'email', 'certifying_organisation')\n    search_fields = ['firstname', 'surname']\n\n    def queryset(self, request):\n        \"\"\"Ensure we use the correct manager.\n\n        :param request: HttpRequest object\n        \"\"\"\n        query_set = self.model.objects\n        ordering = self.get_ordering(request)\n        if ordering:\n            query_set = query_set.order_by(*ordering)\n        return query_set\n\n\nclass CourseAttendeeAdmin(admin.ModelAdmin):\n    \"\"\"Certificate admin model.\"\"\"\n    list_display = ('course', 'attendee', 'author')\n\n    def queryset(self, request):\n        \"\"\"Ensure we use the correct manager.\n\n        :param request: HttpRequest object\n        \"\"\"\n        query_set = self.model.objects\n        ordering = self.get_ordering(request)\n        if ordering:\n            query_set = query_set.order_by(*ordering)\n        return query_set\n\n\nclass CourseAdmin(admin.ModelAdmin):\n    \"\"\"Course admin model.\"\"\"\n\n    def queryset(self, request):\n        \"\"\"Ensure we use the correct manager.\n\n        :param request: HttpRequest object\n        \"\"\"\n        query_set = self.model.objects\n        ordering = self.get_ordering(request)\n        if ordering:\n            query_set = query_set.order_by(*ordering)\n        return query_set\n\n\nclass CourseTypeAdmin(admin.ModelAdmin):\n    \"\"\"Course type admin model.\"\"\"\n\n    def queryset(self, request):\n        \"\"\"Ensure we use the correct manager.\n\n        :param request: HttpRequest object\n        \"\"\"\n        query_set = self.model.objects\n        ordering = self.get_ordering(request)\n        if ordering:\n            query_set = query_set.order_by(*ordering)\n        return query_set\n\n\nclass TrainingCenterAdmin(admin.GeoModelAdmin):\n    \"\"\"Training center admin model.\"\"\"\n\n    def queryset(self, request):\n        \"\"\"Ensure we use the correct manager.\n\n        :param request: HttpRequest object\n        \"\"\"\n        query_set = self.model.objects\n        ordering = self.get_ordering(request)\n        if ordering:\n            query_set = query_set.order_by(*ordering)\n        return query_set\n\n\nclass CourseConvenerAdmin(admin.ModelAdmin):\n    \"\"\"Course convener admin model.\"\"\"\n\n    def queryset(self, request):\n        \"\"\"Ensure we use the correct manager.\n\n        :param request: HttpRequest object\n        \"\"\"\n        query_set = self.model.objects\n        ordering = self.get_ordering(request)\n        if ordering:\n            query_set = query_set.order_by(*ordering)\n        return query_set\n\n\nclass CertifyingOrganisationCertificateAdminInline(admin.TabularInline):\n    model = CertifyingOrganisationCertificate\n    extra = 0\n\n\nclass CertifyingOrganisationCertificateAdmin(SimpleHistoryAdmin):\n    history_list_display = ['issued', 'valid']\n\n\nclass CertifyingOrganisationAdmin(SimpleHistoryAdmin):\n    \"\"\"Certifying organisation admin model.\"\"\"\n\n    filter_horizontal = ('organisation_owners',)\n    search_fields = ['name']\n    list_display = ('name', 'country', 'approved', 'rejected')\n    list_filter = ('country', 'approved', 'rejected', 'status')\n    inlines = (CertifyingOrganisationCertificateAdminInline, )\n    history_list_display = ['status', 'remarks']\n\n    def queryset(self, request):\n        \"\"\"Ensure we use the correct manager.\n\n        :param request: HttpRequest object\n        \"\"\"\n        query_set = self.model.objects\n        ordering = self.get_ordering(request)\n        if ordering:\n            query_set = query_set.order_by(*ordering)\n        return query_set\n\n\nclass StatusAdmin(admin.ModelAdmin):\n    list_display = ('name', 'project', 'order')\n\n\nadmin.site.register(Certificate, CertificateAdmin)\nadmin.site.register(Attendee, AttendeeAdmin)\nadmin.site.register(Course, CourseAdmin)\nadmin.site.register(CourseType, CourseTypeAdmin)\nadmin.site.register(TrainingCenter, TrainingCenterAdmin)\nadmin.site.register(CourseConvener, CourseConvenerAdmin)\nadmin.site.register(CertifyingOrganisation, CertifyingOrganisationAdmin)\nadmin.site.register(CourseAttendee, CourseAttendeeAdmin)\nadmin.site.register(\n    CertifyingOrganisationCertificate, CertifyingOrganisationCertificateAdmin)\nadmin.site.register(Status, StatusAdmin)\n", "path": "django_project/certification/admin.py"}], "after_files": [{"content": "# coding=UTF-8\n\"\"\"Model admin class definitions.\"\"\"\n\nfrom django.contrib.gis import admin\nfrom simple_history.admin import SimpleHistoryAdmin\nfrom certification.models.certificate import Certificate\nfrom certification.models.course import Course\nfrom certification.models.training_center import TrainingCenter\nfrom certification.models.course_convener import CourseConvener\nfrom certification.models.course_type import CourseType\nfrom certification.models.attendee import Attendee\nfrom certification.models.course_attendee import CourseAttendee\nfrom certification.models.certifying_organisation import CertifyingOrganisation\nfrom certification.models.organisation_certificate import \\\n    CertifyingOrganisationCertificate\nfrom certification.models.status import Status\n\n\nclass CertificateAdmin(admin.ModelAdmin):\n    \"\"\"Certificate admin model.\"\"\"\n\n    list_display = ('__unicode__', 'course')\n    search_fields = ('certificateID', 'course__name',)\n\n    def queryset(self, request):\n        \"\"\"Ensure we use the correct manager.\n\n        :param request: HttpRequest object\n        \"\"\"\n        query_set = self.model.objects\n        ordering = self.get_ordering(request)\n        if ordering:\n            query_set = query_set.order_by(*ordering)\n        return query_set\n\n\nclass AttendeeAdmin(admin.ModelAdmin):\n    \"\"\"Attendee admin model.\"\"\"\n    list_display = ('firstname', 'surname', 'email', 'certifying_organisation')\n    search_fields = ['firstname', 'surname']\n\n    def queryset(self, request):\n        \"\"\"Ensure we use the correct manager.\n\n        :param request: HttpRequest object\n        \"\"\"\n        query_set = self.model.objects\n        ordering = self.get_ordering(request)\n        if ordering:\n            query_set = query_set.order_by(*ordering)\n        return query_set\n\n\nclass CourseAttendeeAdmin(admin.ModelAdmin):\n    \"\"\"Certificate admin model.\"\"\"\n    list_display = ('course', 'attendee', 'author')\n\n    def queryset(self, request):\n        \"\"\"Ensure we use the correct manager.\n\n        :param request: HttpRequest object\n        \"\"\"\n        query_set = self.model.objects\n        ordering = self.get_ordering(request)\n        if ordering:\n            query_set = query_set.order_by(*ordering)\n        return query_set\n\n\nclass CourseAdmin(admin.ModelAdmin):\n    \"\"\"Course admin model.\"\"\"\n\n    def queryset(self, request):\n        \"\"\"Ensure we use the correct manager.\n\n        :param request: HttpRequest object\n        \"\"\"\n        query_set = self.model.objects\n        ordering = self.get_ordering(request)\n        if ordering:\n            query_set = query_set.order_by(*ordering)\n        return query_set\n\n\nclass CourseTypeAdmin(admin.ModelAdmin):\n    \"\"\"Course type admin model.\"\"\"\n\n    def queryset(self, request):\n        \"\"\"Ensure we use the correct manager.\n\n        :param request: HttpRequest object\n        \"\"\"\n        query_set = self.model.objects\n        ordering = self.get_ordering(request)\n        if ordering:\n            query_set = query_set.order_by(*ordering)\n        return query_set\n\n\nclass TrainingCenterAdmin(admin.GeoModelAdmin):\n    \"\"\"Training center admin model.\"\"\"\n\n    def queryset(self, request):\n        \"\"\"Ensure we use the correct manager.\n\n        :param request: HttpRequest object\n        \"\"\"\n        query_set = self.model.objects\n        ordering = self.get_ordering(request)\n        if ordering:\n            query_set = query_set.order_by(*ordering)\n        return query_set\n\n\nclass CourseConvenerAdmin(admin.ModelAdmin):\n    \"\"\"Course convener admin model.\"\"\"\n\n    def queryset(self, request):\n        \"\"\"Ensure we use the correct manager.\n\n        :param request: HttpRequest object\n        \"\"\"\n        query_set = self.model.objects\n        ordering = self.get_ordering(request)\n        if ordering:\n            query_set = query_set.order_by(*ordering)\n        return query_set\n\n\nclass CertifyingOrganisationCertificateAdminInline(admin.TabularInline):\n    model = CertifyingOrganisationCertificate\n    extra = 0\n\n\nclass CertifyingOrganisationCertificateAdmin(SimpleHistoryAdmin):\n    history_list_display = ['issued', 'valid']\n\n\nclass CertifyingOrganisationAdmin(SimpleHistoryAdmin):\n    \"\"\"Certifying organisation admin model.\"\"\"\n\n    filter_horizontal = ('organisation_owners',)\n    search_fields = ['name']\n    list_display = ('name', 'project', 'country', 'approved', 'rejected')\n    list_filter = ('country', 'approved', 'rejected', 'status')\n    inlines = (CertifyingOrganisationCertificateAdminInline, )\n    history_list_display = ['status', 'remarks']\n\n    def queryset(self, request):\n        \"\"\"Ensure we use the correct manager.\n\n        :param request: HttpRequest object\n        \"\"\"\n        query_set = self.model.objects\n        ordering = self.get_ordering(request)\n        if ordering:\n            query_set = query_set.order_by(*ordering)\n        return query_set\n\n\nclass StatusAdmin(admin.ModelAdmin):\n    list_display = ('name', 'project', 'order')\n\n\nadmin.site.register(Certificate, CertificateAdmin)\nadmin.site.register(Attendee, AttendeeAdmin)\nadmin.site.register(Course, CourseAdmin)\nadmin.site.register(CourseType, CourseTypeAdmin)\nadmin.site.register(TrainingCenter, TrainingCenterAdmin)\nadmin.site.register(CourseConvener, CourseConvenerAdmin)\nadmin.site.register(CertifyingOrganisation, CertifyingOrganisationAdmin)\nadmin.site.register(CourseAttendee, CourseAttendeeAdmin)\nadmin.site.register(\n    CertifyingOrganisationCertificate, CertifyingOrganisationCertificateAdmin)\nadmin.site.register(Status, StatusAdmin)\n", "path": "django_project/certification/admin.py"}]}