Skip to content

Commit 323063c

Browse files
committed
Add profile_img field to Program
1 parent 4211e75 commit 323063c

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

program/admin.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@ class ProgramAdmin(ImportExportModelAdmin):
1010
list_display = [
1111
"id",
1212
"host",
13+
"profile_img",
1314
"title",
1415
"room",
1516
"slot",
1617
"start_at",
1718
"end_at",
1819
"program_type",
1920
]
20-
list_filter = ["program_type", ]
21+
list_filter = [
22+
"program_type",
23+
]
2124
search_fields = ["title", "host__username"]
2225
resource_class = ProgramResource

program/resources.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ class Meta:
1616
fields = [
1717
"id",
1818
"host",
19+
"profile_img",
1920
"title",
2021
"short_desc",
2122
"desc",
2223
"room",
2324
"program_type",
2425
"start_at",
25-
"end_at"
26-
]
26+
"end_at",
27+
]

program/serializers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class Meta:
99
fields = [
1010
"id",
1111
"host",
12+
"profile_img",
1213
"title",
1314
"short_desc",
1415
"desc",

0 commit comments

Comments
 (0)