#1324 and #1306 fix on preview custom regform
Merge branch 'master' of https://github.com/tendenci/tendenci