mirror of
https://github.com/bratusev07/skb-market.git
synced 2026-12-05 05:09:44 +00:00
feat: update game models and configure PostgreSQL
This commit is contained in:
1 parent
a2cccbda59
commit
196d1e2ed7
14 files changed
+520
-8
No files matched your search
+22
-1
@@ -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",)
|
||||
Reference in new issue
Block a user