Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #258 from readevalprint/fix_indent

[fix bug 764177] Fix indents.
  • Loading branch information...
commit 1c4e86eeb354bb2ee55cea812a48745d4ea19f7c 2 parents 2e5fe2f + ef60a83
@readevalprint readevalprint authored
Showing with 14 additions and 14 deletions.
  1. +14 −14 apps/phonebook/views.py
View
28 apps/phonebook/views.py
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.