Dot-Notation for Users.url
This commit is contained in:
parent
bec591d85b
commit
a24e5133ed
@ -176,7 +176,7 @@ def edit_profile(request):
|
||||
{'user': user,
|
||||
'form': form})
|
||||
|
||||
user['url'] = unicode(request.POST['url'])
|
||||
user.url = unicode(request.POST['url'])
|
||||
user['bio'] = unicode(request.POST['bio'])
|
||||
|
||||
if password_matches:
|
||||
|
@ -89,7 +89,7 @@
|
||||
{%- trans username=user.username %}{{ username }}'s profile{% endtrans -%}
|
||||
</h1>
|
||||
|
||||
{% if not user['url'] and not user['bio'] %}
|
||||
{% if not user.url and not user.bio %}
|
||||
{% if request.user._id == user._id %}
|
||||
<div class="grid_6 alpha empty_space">
|
||||
<p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user