Change user.userprofileinfo.user to user
This commit is contained in:
parent
dc955fc189
commit
acf306097a
|
@ -93,7 +93,7 @@
|
||||||
<li class="list-group-item">{% trans "Registered since" %} {{ user.date_joined|date:"Y-m-d" }}</li>
|
<li class="list-group-item">{% trans "Registered since" %} {{ user.date_joined|date:"Y-m-d" }}</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="list-group">
|
<ul class="list-group">
|
||||||
<form method='GET' action="{% url 'accounts:profile' user.userprofileinfo.user %}">
|
<form method='GET' action="{% url 'accounts:profile' user %}">
|
||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
<input class="form-control" type="submit" value="{% trans " View my profile" %}">
|
<input class="form-control" type="submit" value="{% trans " View my profile" %}">
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -95,7 +95,7 @@
|
||||||
<a href="{% url 'accounts:edit' %}" class="nav-link">{{ request.user.username }}</a>
|
<a href="{% url 'accounts:edit' %}" class="nav-link">{{ request.user.username }}</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item dropdown">
|
<li class="nav-item dropdown">
|
||||||
<a class="nav-link" href="{% url 'accounts:profile' user.userprofileinfo.user %}">{{ request.user.userprofileinfo.score }}</a>
|
<a class="nav-link" href="{% url 'accounts:profile' user %}">{{ request.user.userprofileinfo.score }}</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item dropdown">
|
<li class="nav-item dropdown">
|
||||||
<a class="nav-link" href="{% url 'accounts:out' %}">{% translate "Logout" %}</a>
|
<a class="nav-link" href="{% url 'accounts:out' %}">{% translate "Logout" %}</a>
|
||||||
|
|
Loading…
Reference in New Issue