def policies(request, render_callback=None): # Retrieve the entity to display from the given slug region = Entity.objects.region() # Get request context c = get_context(request, css_class='body-entities', title=region.name) return entities_show(request, c, region, render_callback)
def policies(request, render_callback=None): # Get request context c = get_context(request, css_class='body-entities', title='') # Retrieve the entity to display main_entity = get_main_entity(c) set_title(c, main_entity.name) return entities_show(request, c, main_entity, render_callback)
def counties_show(request, county_slug, render_callback=None): county = _get_county(county_slug) return entities_show(request, _get_county_context(request, county), county, render_callback)
def towns_show(request, town_slug, render_callback=None): town = _get_town(town_slug) return entities_show(request, _get_town_context(request, town), town, render_callback)