Permalink
Browse files

separate formid segments with - instead of _

  • Loading branch information...
1 parent 719e160 commit 862bdffb89fd4d26cf1178057cbe4df47220742d @tilgovi tilgovi committed Dec 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 h/forms.py
View
@@ -13,7 +13,7 @@ def __new__(cls, name, bases, attrs):
formid = name.replace('Form', '')
formid = (
formid[0].lower() +
- re.sub(r'([A-Z])', lambda m: "_" + m.group(0).lower(), formid[1:])
+ re.sub(r'([A-Z])', lambda m: "-" + m.group(0).lower(), formid[1:])
)
attrs.setdefault('formid', formid)
return type.__new__(cls, name, bases, attrs)

0 comments on commit 862bdff

Please sign in to comment.