Skip to content

Commit b03db0f

Browse files
committed
Added: in admin.py for foreign key fields I changed them into raw_id_fields for more scalable id manual data entry
1 parent 40ddee9 commit b03db0f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

server/game_dev/admin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ class GameShowcaseAdmin(admin.ModelAdmin):
2828

2929
class GamesAdmin(admin.ModelAdmin):
3030
list_display = ("id", "name", "description", "completion", "active", "hostURL", "itchEmbedID", "thumbnail", "itchGameEmbedID", "itchGameWidth",
31-
"itchGameHeight", "event")
31+
"itchGameHeight")
3232
search_fields = ["name", "description"]
33+
raw_id_fields = ["event"]
3334

3435

3536
class CommitteeAdmin(admin.ModelAdmin):

0 commit comments

Comments
 (0)