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