mirror of
https://github.com/bratusev07/skb-market.git
synced 2026-12-04 20:59:45 +00:00
25 lines
533 B
Python
25 lines
533 B
Python
|
|
from django.contrib import admin
|
|
|
|
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",)
|