Fixes 1876.
Made changes to templatetag code to always use the placeholders found in template. And if one is not found then create it.
Merge pull request #1877 from czpython/patch-7

Fixes NoReverseMatch on new placeholder