genghisken / ps1

Pan-STARRS and ATLAS code
3 stars 0 forks source link

Cannot render column explicitly with django_tables2 #71

Open genghisken opened 7 years ago

genghisken commented 7 years ago

Originally reported by: Ken Smith (Bitbucket: genghisken, GitHub: genghisken)


The previous install of django_tables2 (1.1.1) allowed reference to explicit columns - e.g.:

{% for row in table.rows %}{{ row.det_id }}
{% endfor %}

The current version of django_tables2 does NOT allow this. (The version installed on psweb2 was 1.10.) The solution is completely unclear at the moment. Need help from the code author.

In the meantime, I downgraded back to 1.1.1. Note also that the LATEST version of django_tables2 (1.11.0) will insist on an update to django 1.11.6, and we are not yet ready to migrate.


genghisken commented 4 years ago

Please leave open for the time being. I'll need to deal with this when moving to Python 3. (I got an enhancement from the django_tables2 developers as well.)