Add v2 relational domain foundations with import run/file models
This commit is contained in:
@ -5,16 +5,16 @@ from .models import Competition, Season, TeamSeason
|
||||
|
||||
@admin.register(Competition)
|
||||
class CompetitionAdmin(admin.ModelAdmin):
|
||||
list_display = ("name", "competition_type", "gender", "country", "is_active")
|
||||
list_display = ("name", "source_uid", "competition_type", "gender", "country", "is_active")
|
||||
list_filter = ("competition_type", "gender", "country", "is_active")
|
||||
search_fields = ("name", "slug")
|
||||
search_fields = ("name", "slug", "source_uid")
|
||||
|
||||
|
||||
@admin.register(Season)
|
||||
class SeasonAdmin(admin.ModelAdmin):
|
||||
list_display = ("label", "start_date", "end_date", "is_current")
|
||||
list_display = ("label", "source_uid", "start_date", "end_date", "is_current")
|
||||
list_filter = ("is_current",)
|
||||
search_fields = ("label",)
|
||||
search_fields = ("label", "source_uid")
|
||||
|
||||
|
||||
@admin.register(TeamSeason)
|
||||
|
||||
Reference in New Issue
Block a user