File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 3
3
4
4
5
5
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' ,]
Original file line number Diff line number Diff line change 3
3
4
4
# Third Party Stuff
5
5
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
7
7
from django .views .decorators .http import require_http_methods
8
8
from django .http import HttpResponseRedirect
9
9
from django .core .urlresolvers import reverse
@@ -49,6 +49,6 @@ def profile(request):
49
49
user = get_object_or_404 (User , pk = username .id )
50
50
detail = get_object_or_404 (Profile , user = user )
51
51
if detail :
52
- return render (request , 'profiles/userprofile.html' , {'detail' :detail })
52
+ return render (request , 'profiles/userprofile.html' , {'detail' : detail })
53
53
else :
54
54
return render (request , 'profiles/userprofile.html' )
You can’t perform that action at this time.
0 commit comments