Browse Source

Arreglo error importación

politica
Celestino Rey 9 months ago
parent
commit
accde0c232
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      JugarAlPadel/K8S/Makefile
  2. +2
    -2
      JugarAlPadel/gestion_reservas/gestion_reservas/views.py

+ 1
- 1
JugarAlPadel/K8S/Makefile View File

@ -2,7 +2,7 @@ export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':')
#export REGISTRY=localhost:5000 #export REGISTRY=localhost:5000
export REGISTRY=registry.reymota.es export REGISTRY=registry.reymota.es
export IMG_VERSION = 0.59
export IMG_VERSION = 0.60
export IMG_NGINX_VERSION = 2.3 export IMG_NGINX_VERSION = 2.3
# limpia todo # limpia todo


+ 2
- 2
JugarAlPadel/gestion_reservas/gestion_reservas/views.py View File

@ -11,7 +11,7 @@ from django.http import HttpResponseForbidden
from rest_framework.decorators import api_view from rest_framework.decorators import api_view
from eventos.models import Noticia, Evento from eventos.models import Noticia, Evento
from .serializers import EventoSerializer
from .serializers import AyudaSerializer
from .models import Ayuda from .models import Ayuda
import markdown # Importa la biblioteca de markdown import markdown # Importa la biblioteca de markdown
@ -72,5 +72,5 @@ def ayuda(request):
def api_lista_ayuda(request): def api_lista_ayuda(request):
"""Devuelve la lista de toda la ayuda.""" """Devuelve la lista de toda la ayuda."""
ayuda = Ayuda.objects.all() ayuda = Ayuda.objects.all()
serializer = EventoSerializer(ayuda, many=True)
serializer = AyudaSerializer(ayuda, many=True)
return Response(serializer.data) return Response(serializer.data)

Loading…
Cancel
Save