mirror of
https://github.com/adrigongv23/G26---Telemetry-Software.git
synced 2026-08-25 11:33:17 +02:00
Inicio del Django y base de datos
This commit is contained in:
parent
57494f02e5
commit
0e0c8d7d1b
66 changed files with 647 additions and 69 deletions
13
Plataform_Web/temporadas/admin.py
Normal file
13
Plataform_Web/temporadas/admin.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from django.contrib import admin
|
||||
from .models import Temporada
|
||||
|
||||
@admin.register(Temporada)
|
||||
class TemporadaAdmin(admin.ModelAdmin):
|
||||
# Esto define qué columnas se ven en la lista
|
||||
list_display = ('nombre', 'fecha_inicio', 'fecha_fin', 'presupuesto', 'actual')
|
||||
|
||||
# Esto añade un filtro a la derecha para ver rápido cuál es la actual
|
||||
list_filter = ('actual',)
|
||||
|
||||
# Esto añade una barra de búsqueda por nombre
|
||||
search_fields = ('nombre',)
|
||||
Loading…
Add table
Add a link
Reference in a new issue