]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/users/edit.html
making the user edit url contain the user slug
[osqa.git] / forum / skins / default / templates / users / edit.html
index 09292fec448817918411ea7f040bc04902ab53c5..ce54c773e6633b551b7f7414a34ff0e97e4a4843 100644 (file)
@@ -33,7 +33,7 @@
     {{ user.username }} - {% trans "edit profile" %}\r
 </div>\r
 <div id="main-body" style="width:100%;padding-top:10px">\r
-    <form name="" action="{% url edit_user user.id %}" method="post">\r
+    <form name="" action="{% url edit_user user.id user.username|slugify %}" method="post">\r
         {% csrf_token %}\r
         <div id="left" style="float:left;width:180px">\r
             {% if user.email %}\r