evildmp / Arkestra

Arkestra extends Django CMS to provide an intelligent semantic web publishing system for organisations and institutions.
http://arkestra-project.org
BSD 2-Clause "Simplified" License
139 stars 27 forks source link

ArkestraGenericLister.determine_layout_settings() - issues with querysets #111

Open evildmp opened 10 years ago

evildmp commented 10 years ago

If ArkestraGenericLister.determine_layout_settings() receives a horizontal list_ it needs to add lastcolumn to the class of the last item.

Sometimes the list will be a queryset, in which case using a negative slice would break.

Currently we coerce it to a list just in case. Maybe there is a better way of doing this.