Closed dchud closed 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.
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.