|
@@ -4,6 +4,7 @@ from games.models import Developer, Game, GameSystem, Genre, Publisher, GameColl
|
|
|
|
|
|
|
|
|
|
class GameAdmin(admin.ModelAdmin):
|
|
class GameAdmin(admin.ModelAdmin):
|
|
|
|
+ date_hierarchy = "created"
|
|
list_display = ("name", "game_system", "rating", "region")
|
|
list_display = ("name", "game_system", "rating", "region")
|
|
list_filter = (
|
|
list_filter = (
|
|
"undub",
|
|
"undub",
|
|
@@ -12,6 +13,7 @@ class GameAdmin(admin.ModelAdmin):
|
|
"region",
|
|
"region",
|
|
"game_system",
|
|
"game_system",
|
|
)
|
|
)
|
|
|
|
+ ordering = ("-created",)
|
|
search_fields = [
|
|
search_fields = [
|
|
"name",
|
|
"name",
|
|
"description",
|
|
"description",
|