We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 930af31 commit 70b86feCopy full SHA for 70b86fe
junction/profiles/views.py
@@ -10,7 +10,7 @@
10
# Junction Stuff
11
from junction.conferences.models import Conference
12
13
-#Profile Stuff
+# Profile Stuff
14
from .models import Profile
15
16
@@ -30,11 +30,11 @@ def dashboard(request):
30
31
@login_required
32
def profile(request):
33
- if request.method=="POST":
+ if request.method == "POST":
34
city = request.POST['city']
35
contact_no = request.POST['contact_no']
36
Profile.objects.create(user=request.user, city=city, contact_no=contact_no)
37
return HttpResponseRedirect("/profiles")
38
39
elif request.method=="GET":
40
- return render(request, 'profiles/userprofile.html')
+ return render(request, 'profiles/userprofile.html')
0 commit comments