Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

separate formid segments with - instead of _

  • Loading branch information...
commit 862bdffb89fd4d26cf1178057cbe4df47220742d 1 parent 719e160
@tilgovi tilgovi authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  h/forms.py
View
2  h/forms.py
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.