From 657e26778ba800d3d7c1de33bd1fc20387b4391a Mon Sep 17 00:00:00 2001 From: Celestino Rey Date: Wed, 19 Feb 2025 08:37:24 +0100 Subject: [PATCH] Cambios en reymotusers api --- JugarAlPadel/K8S/Makefile | 2 +- .../reymotausers/management/commands/importar_usuarios.py | 2 -- JugarAlPadel/gestion_reservas/reymotausers/serializers.py | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/JugarAlPadel/K8S/Makefile b/JugarAlPadel/K8S/Makefile index 279ef3e..1637216 100644 --- a/JugarAlPadel/K8S/Makefile +++ b/JugarAlPadel/K8S/Makefile @@ -2,7 +2,7 @@ export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':') #export REGISTRY=localhost:5000 export REGISTRY=registry.reymota.es -export IMG_VERSION = 0.50 +export IMG_VERSION = 0.53 export IMG_NGINX_VERSION = 2.3 # limpia todo diff --git a/JugarAlPadel/gestion_reservas/reymotausers/management/commands/importar_usuarios.py b/JugarAlPadel/gestion_reservas/reymotausers/management/commands/importar_usuarios.py index bfe07ce..25a34b1 100644 --- a/JugarAlPadel/gestion_reservas/reymotausers/management/commands/importar_usuarios.py +++ b/JugarAlPadel/gestion_reservas/reymotausers/management/commands/importar_usuarios.py @@ -33,8 +33,6 @@ class Command(BaseCommand): is_active=usuario_data['is_active'], nombre=usuario_data['nombre'], email=usuario_data['email'], - groups=usuario_data['groups'], - user_permissions=usuario_data['user_permissions'], last_login=usuario_data['last_login'] ) if creado: diff --git a/JugarAlPadel/gestion_reservas/reymotausers/serializers.py b/JugarAlPadel/gestion_reservas/reymotausers/serializers.py index dd81796..dca3e4b 100644 --- a/JugarAlPadel/gestion_reservas/reymotausers/serializers.py +++ b/JugarAlPadel/gestion_reservas/reymotausers/serializers.py @@ -5,4 +5,4 @@ from .models import ReyMotaUser class ReyMotaUserSerializer(serializers.ModelSerializer): class Meta: model = ReyMotaUser - fields = ['email', 'foto', 'is_staff', 'is_active', 'nombre'] + fields = ['email', 'password', 'foto', 'is_superuser', 'is_staff', 'is_active', 'nombre', 'last_login']