Permalink
Browse files

[fix bug 764177] Fix indents.

  • Loading branch information...
1 parent 031c3d0 commit ef60a83a8ca8e4ce2c6b782a037271806e6f6a4c @readevalprint readevalprint committed Jun 12, 2012
Showing with 14 additions and 14 deletions.
  1. +14 −14 apps/phonebook/views.py
View
@@ -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)

0 comments on commit ef60a83

Please sign in to comment.