gwu-libraries / inventory_old

A system for tracking location of digital items and progress in reformatting projects
MIT License
5 stars 1 forks source link

T165 tweak item view #183

Closed dchud closed 11 years ago

dchud commented 11 years ago

tweaks views for home, collection, item, bag, as they are the most heavily traversed. we will need to keep tweaking! for now the page layout is tighter, at least.

darshanrp commented 11 years ago

Since every item isn't necessarily associated to a collection, it throws the following error for items without a collection,

Exception Type:  NoReverseMatch
Exception Value: Reverse for 'collection' with arguments '('',)' and keyword arguments '{}' not found.
In template /home/darshan/projects/inventory/inv/invapp/templates/home.html, error at line 133
<td><a href="{% url 'collection' item.collection.id %}">{{ item.collection.name }}</a></td>

We might have to add a check for seeing if an item is associated with any collection.