1. Francesco Banconi
  2. django-generic-ratings
  3. Issues
Issue #16 new

show_starrating does not work for multiple ratings on the same object

Anonymous created an issue

If the template is {% get_rating_score for object using 'key1' as score1%} {% get_rating_score for object using 'key2' as score2 %}

{%show_starrating score1%} {%show_starrating score2%}

Only score1 is rendered with stars. score2 is just a set of radio inputs. I'm guessing the problem is that both divs generated for score1 and score2 have the same id. The value of their keys were never passed on to StarWidget in order to generate unique html ids.

Comments (0)

  1. Log in to comment