~widelands-dev/widelands-website/solitaire_html_documentation

« back to all changes in this revision

Viewing changes to wlmaps/views.py

  • Committer: franku
  • Date: 2016-05-18 19:31:46 UTC
  • mto: This revision was merged to the branch mainline in revision 409.
  • Revision ID: somal@arcor.de-20160518193146-w5dmezymi3wlnhvl
added djangoratings and adjust it to django 1.8; updated update_problems.txt

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
def view(request, map_slug):
75
75
    map = get_object_or_404(models.Map, slug=map_slug)
76
76
    context = {
77
 
        #"average_rating": _average_rating( map.rating ),
78
77
        'map': map,
79
78
    }
80
79
    return render_to_response('wlmaps/map_detail.html',