mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-23 09:47:09 +00:00
13 lines
389 B
Python
13 lines
389 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 = ("title", "end_date", "type",)
|
|
search_fields = ("title", "description",)
|
|
list_filter = ("type", "participation_type",)
|
|
inlines = [CompetitionTaskInline]
|