mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-22 23:17:09 +00:00
24 lines
477 B
Python
24 lines
477 B
Python
from django.contrib import admin
|
|
|
|
from apps.competition.models import Competition
|
|
from apps.task.admin import CompetitionTaskInline
|
|
|
|
|
|
@admin.register(Competition)
|
|
class CompetitionAdmin(admin.ModelAdmin):
|
|
list_display = (
|
|
"id",
|
|
"title",
|
|
"end_date",
|
|
"type",
|
|
)
|
|
search_fields = (
|
|
"title",
|
|
"description",
|
|
)
|
|
list_filter = (
|
|
"type",
|
|
"participation_type",
|
|
)
|
|
inlines = [CompetitionTaskInline]
|