Commit fea2c505 by Kálmán Viktor

dashboard: minor fixes

parent e79acf21
...@@ -90,7 +90,8 @@ class Profile(Model): ...@@ -90,7 +90,8 @@ class Profile(Model):
valid_until) valid_until)
def get_absolute_url(self): def get_absolute_url(self):
return reverse("dashboard.views.profile", kwargs={'pk': self.user.pk}) return reverse("dashboard.views.profile",
kwargs={'username': self.user.username})
class GroupProfile(AclBase): class GroupProfile(AclBase):
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
</div> </div>
<div class="" style="padding-left: 215px;"> <div class="" style="padding-left: 215px;">
<p>{% trans "Username" %}: {{ profile.username }}</p> <p>{% trans "Username" %}: {{ profile.username }}</p>
<p>{% trans "Organisation ID" %}: {{ profile.profile.org_id|default:"-" }}</p> <p>{% trans "Organization ID" %}: {{ profile.profile.org_id|default:"-" }}</p>
<p>{% trans "First name" %}: {{ profile.first_name|default:"-" }}</p> <p>{% trans "First name" %}: {{ profile.first_name|default:"-" }}</p>
<p>{% trans "Last name" %}: {{ profile.last_name|default:"-" }}</p> <p>{% trans "Last name" %}: {{ profile.last_name|default:"-" }}</p>
<p> <p>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment