Commits

Kai Diefenbach committed 7dc771c

Fixed management of criteria.

Comments (0)

Files changed (1)

lfs/criteria/models/criteria.py

         template = "manage/criteria/%s_criterion.html" % self.content_type
 
         return render_to_string(template, RequestContext(request, {
-            "id": "ex%s" % self.id,
+            "id": "%s%s" % (self.content_type, self.id),
             "operator": self.operator,
             "value": self.value,
             "position": position,
             })
 
         return render_to_string("manage/criteria/country_criterion.html", RequestContext(request, {
-            "id": "ex%s" % self.id,
+            "id": "%s%s" % (self.content_type, self.id),
             "operator": self.operator,
             "value": self.value,
             "position": position,
             })
 
         return render_to_string("manage/criteria/payment_method_criterion.html", RequestContext(request, {
-            "id": "ex%s" % self.id,
+            "id": "%s%s" % (self.content_type, self.id),
             "operator": self.operator,
             "value": self.value,
             "position": position,
             })
 
         return render_to_string("manage/criteria/shipping_method_criterion.html", RequestContext(request, {
-            "id": "ex%s" % self.id,
+            "id": "%s%s" % (self.content_type, self.id),
             "operator": self.operator,
             "value": self.value,
             "position": position,