Skip to content

Commit 6b88000

Browse files
author
ninjadev999
committed
fixed question issue
1 parent 05d4b1a commit 6b88000

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/question/admin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ class QuestionAdmin(admin.ModelAdmin):
1919

2020

2121
def position_type_display(self, obj):
22-
return obj.position_type.name
22+
return obj.position_type
2323

2424
position_type_display.short_description = "Position type"
2525

2626

2727
def position_sub_type_display(self, obj):
2828
if obj.position_sub_type:
29-
return obj.position_sub_type.name
29+
return obj.position_sub_type
3030
else:
3131
return ""
3232

0 commit comments

Comments
 (0)