Skip to content
Browse files

restore previous commit due to uncertain behaviour re a5ee692

  • Loading branch information...
1 parent b09bb93 commit fbf670221a6be2ba05c6bae118d152ba5198b09c @martinfilliau martinfilliau committed Feb 21, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 molly/apps/places/views.py
View
3 molly/apps/places/views.py
@@ -309,9 +309,10 @@ def breadcrumb(self, request, context, scheme, value):
parent_view = 'nearby-detail'
else:
parent_view = 'category-detail'
+ entity = get_entity(scheme, value)
return Breadcrumb(
'places',
- lazy_parent(parent_view, ptypes=context['entity'].primary_type.slug),
+ lazy_parent(parent_view, ptypes=entity.primary_type.slug),
context['entity'].title,
lazy_reverse('entity', args=[scheme, value]),
)

0 comments on commit fbf6702

Please sign in to comment.
Something went wrong with that request. Please try again.