Alir3z4 / Alir3z4/django-databrowse

Objects passed to template are not EasyInstance instances

Abierto
#31 0 comentarios 1 reacción 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
42
Forks
20
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

When loading `http://localhost:8000/browse/app/model/`, it correctly prints a list of objects, but they all link to `http://localhost:8000/browse/app/model` (instead of `http://localhost:8000/browse/app/model/objects/X`)

It looks like the objects passed to the template `model_detail.html` are not `EasyInstance` instances, which is why `object.url` is empty. The objects are simply instances of the Django model.

After a bit of debugging, I found out that the `iterator` method of `EasyQuerySet` is never called, so that we end up with an `EasyQuerySet` that contains Django model instances (in `EasyModel.objects`).

This is with Django 1.11.7 and Python 3.6

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.