Skip to content

Commit

Permalink
using context in views instead of loading from db
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfilliau committed Feb 20, 2012
1 parent a5ee692 commit aa0ee68
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion molly/apps/places/views.py
Expand Up @@ -309,7 +309,6 @@ def breadcrumb(self, request, context, scheme, value):
parent_view = 'nearby-detail' parent_view = 'nearby-detail'
else: else:
parent_view = 'category-detail' parent_view = 'category-detail'
#entity = get_entity(scheme, value)
return Breadcrumb( return Breadcrumb(
'places', 'places',
lazy_parent(parent_view, ptypes=context['entity'].primary_type.slug), lazy_parent(parent_view, ptypes=context['entity'].primary_type.slug),
Expand Down

0 comments on commit aa0ee68

Please sign in to comment.