Skip to content

Commit

Permalink
mejorando v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Juanpepitt committed Jul 4, 2024
1 parent 4810895 commit fcfb07c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions EcoWEB/Apps/Usuarios/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,14 +358,15 @@ def muestra_productores(request):

productores_data = []
for productor in productores:
productores_data.append({
'id': productor.id,
'email': productor.email,
'nombre': productor.nombre,
'apellidos': productor.apellidos,
'telefono': productor.telefono,
'imagen': productor.photo
})
if productor.email != user.email:
productores_data.append({
'id': productor.id,
'email': productor.email,
'nombre': productor.nombre,
'apellidos': productor.apellidos,
'telefono': productor.telefono,
'imagen': productor.photo
})

context = {
'productores': productores_data,
Expand Down
Binary file modified EcoWEB/db.sqlite3
Binary file not shown.

0 comments on commit fcfb07c

Please sign in to comment.