Commit 9c715b60 by Calen Pennington

Fix broken element ids for modules with .s in their names

parent 79987666
...@@ -119,7 +119,7 @@ class Location(_LocationBase): ...@@ -119,7 +119,7 @@ class Location(_LocationBase):
""" """
Return a string with a version of the location that is safe for use in html id attributes Return a string with a version of the location that is safe for use in html id attributes
""" """
return "-".join(str(v) for v in self if v is not None) return "-".join(str(v) for v in self.list() if v is not None).replace('.', '_')
def dict(self): def dict(self):
return self.__dict__ return self.__dict__
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment