1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-26 19:42:22 +00:00
plateforme-tfjm2/apps/tournament/admin.py

32 lines
556 B
Python
Raw Normal View History

2020-04-29 02:51:25 +00:00
from django.contrib.auth.admin import admin
2020-04-29 02:06:02 +00:00
2020-05-11 12:08:19 +00:00
from .models import Team, Tournament, Pool, Payment
2020-04-29 02:51:25 +00:00
@admin.register(Team)
class TeamAdmin(admin.ModelAdmin):
2020-05-11 12:08:19 +00:00
"""
Django admin page for teams.
"""
2020-04-29 02:51:25 +00:00
@admin.register(Tournament)
class TournamentAdmin(admin.ModelAdmin):
2020-05-11 12:08:19 +00:00
"""
Django admin page for tournaments.
"""
2020-04-29 02:51:25 +00:00
2020-05-05 02:45:38 +00:00
@admin.register(Pool)
class PoolAdmin(admin.ModelAdmin):
2020-05-11 12:08:19 +00:00
"""
Django admin page for pools.
"""
2020-05-05 02:45:38 +00:00
2020-04-29 02:51:25 +00:00
@admin.register(Payment)
class PaymentAdmin(admin.ModelAdmin):
2020-05-11 12:08:19 +00:00
"""
Django admin page for payments.
"""