Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
[fix bug 764177] Fix indents.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Watts committed Jun 12, 2012
1 parent 031c3d0 commit ef60a83
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions apps/phonebook/views.py
Expand Up @@ -95,20 +95,20 @@ def edit_profile(request):
'changed.'))

return redirect(reverse('profile', args=[request.user.username]))
else:
initial = dict(first_name=request.user.first_name,
last_name=request.user.last_name,
bio=profile.bio,
website=profile.website,
irc_nickname=profile.ircname,
groups=user_groups,
skills=user_skills)

form = forms.ProfileForm(
instance=profile,
initial=initial,
)
form.fields['country'].choices = COUNTRIES
else:
initial = dict(first_name=request.user.first_name,
last_name=request.user.last_name,
bio=profile.bio,
website=profile.website,
irc_nickname=profile.ircname,
groups=user_groups,
skills=user_skills)

form = forms.ProfileForm(
instance=profile,
initial=initial,
)
form.fields['country'].choices = COUNTRIES

if not request.user.username.startswith('u/'):
initial.update(username=request.user.username)
Expand Down

0 comments on commit ef60a83

Please sign in to comment.