| changeset 336 | aec074085a81 |
| parent 334 | 8b34dc2c2f41 |
| child 338 | 2df551ebddef |
--- a/src/hdalab/views/profile.py Tue Sep 23 15:51:35 2014 +0200 +++ b/src/hdalab/views/profile.py Wed Sep 24 13:07:08 2014 +0200 @@ -121,6 +121,12 @@ form = AuthenticationForm(self.request) context["form"] = form + current_url = self.request.get_full_path() + if "shape=circle" in current_url: + switch_shape_url = current_url.replace("&shape=circle", "") + else: + switch_shape_url = current_url + "&shape=circle" + context["switch_shape_url"] = switch_shape_url return context