feat: update game models and configure PostgreSQL

This commit is contained in:
Денис Братусев committed 2026-10-28 12:06:32 +03:00
1 parent a2cccbda59
commit 196d1e2ed7
14 files changed
+520 -8

No files matched your search

+22 -1
View File
@@ -1,3 +1,24 @@
from django.contrib import admin
# Register your models here.
from .models import Game, Screenshot
@admin.register(Game)
class GameAdmin(admin.ModelAdmin):
list_display = (
"title",
"version",
"status",
"created_by",
"updated_at",
)
list_filter = ("status", "unity_version")
search_fields = ("title", "created_by__username")
ordering = ("-updated_at",)
@admin.register(Screenshot)
class ScreenshotAdmin(admin.ModelAdmin):
list_display = ("game", "image")
search_fields = ("game__title",)