Skip to content
This repository
Browse code

Fix bad get_metadata

  • Loading branch information...
commit f12e75085f17a6e9e191c9a45555d9a6aaf1d274 1 parent 82577a7
Chris Northwood cnorthwood authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 molly/apps/places/views.py
4 molly/apps/places/views.py
@@ -458,11 +458,11 @@ def get_metadata(self, request, ptypes):
458 458 if len(context['entity_types']) > 1:
459 459 return {
460 460 'exclude_from_search':True,
461   - 'title': 'All %s near%s%s' % capfirst(context['entity_types'][0].verbose_name_plural),
  461 + 'title': 'All %s' % context['entity_types'][0].verbose_name_plural,
462 462 }
463 463
464 464 return {
465   - 'title': 'All %s near%s%s' % capfirst(context['entity_types'][0].verbose_name_plural),
  465 + 'title': 'All %s' % context['entity_types'][0].verbose_name_plural,
466 466 'additional': '<strong>%d %s</strong>' % (
467 467 len(context['entities']),
468 468 context['entity_types'][0].verbose_name_plural,

0 comments on commit f12e750

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