Skip to content

Commit 8463b41

Browse files
flake8 fixes
1 parent 65bdc0d commit 8463b41

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

junction/profiles/forms.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
class ProfileForm(forms.ModelForm):
6-
class Meta:
7-
model = Profile
8-
fields = ['city', 'contact_no']
9-
exclude = ['user',]
6+
class Meta:
7+
model = Profile
8+
fields = ['city', 'contact_no',]
9+
exclude = ['user',]

junction/profiles/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# Third Party Stuff
55
from django.contrib.auth.decorators import login_required
6-
from django.shortcuts import render, get_object_or_404, redirect
6+
from django.shortcuts import render, get_object_or_404
77
from django.views.decorators.http import require_http_methods
88
from django.http import HttpResponseRedirect
99
from django.core.urlresolvers import reverse
@@ -49,6 +49,6 @@ def profile(request):
4949
user = get_object_or_404(User, pk=username.id)
5050
detail = get_object_or_404(Profile, user=user)
5151
if detail:
52-
return render(request, 'profiles/userprofile.html', {'detail':detail})
52+
return render(request, 'profiles/userprofile.html', {'detail': detail})
5353
else:
5454
return render(request, 'profiles/userprofile.html')

0 commit comments

Comments
 (0)