Ver Fonte

leo acompanante si hay acompanante

Celestino Rey há 11 meses atrás
pai
commit
6d1c668a9a

+ 1 - 1
src/eventos/management/commands/importar_listaespera.py

@@ -34,7 +34,7 @@ class Command(BaseCommand):
                     creado = ListaEspera.objects.create(
                     creado = ListaEspera.objects.create(
                         evento_id=evento.id,
                         evento_id=evento.id,
                         usuario_id=usuario.id,
                         usuario_id=usuario.id,
-                        acompanante_id=acompanante.id,
+                        acompanante_id=acompanante.id if acompanante else None,
                         fecha_apuntado=listaespera_data['fecha_apuntado'],
                         fecha_apuntado=listaespera_data['fecha_apuntado'],
                     )
                     )
                     if creado:
                     if creado: