Fixed Edit Template bug for production severs.

Could not save an edited/copied template in the production server.  I
was getting an error saying "Failure: no post data”.  Looked up Django
documentation for request.POST and it instructs us to use
“request.method == “POST”” instead.  Tested the changes both in a test
environment and in production.  They both worked.