Browse Source

Añado el campo contenido a la importación

politica
creylopez 9 months ago
parent
commit
4585d7b588
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      JugarAlPadel/gestion_reservas/eventos/management/commands/importar_noticias.py

+ 1
- 0
JugarAlPadel/gestion_reservas/eventos/management/commands/importar_noticias.py View File

@ -33,6 +33,7 @@ class Command(BaseCommand):
autor=usuario, autor=usuario,
titulo=noticia_data['titulo'], titulo=noticia_data['titulo'],
fecha_publicacion=noticia_data['fecha_publicacion'], fecha_publicacion=noticia_data['fecha_publicacion'],
contenido=noticia_data['contenido'],
publicado=noticia_data['publicado'] publicado=noticia_data['publicado']
) )
if creado: if creado:


Loading…
Cancel
Save