Skip to content

Commit

Permalink
nochmal#2
Browse files Browse the repository at this point in the history
  • Loading branch information
station committed Jul 25, 2016
1 parent 178c8de commit 6e6dce7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ __pycache__/
*.db
*.sqlite3
*.db3


**/migrations/
2 changes: 1 addition & 1 deletion frontend/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def post(self, request, *args, **kwargs):
token = request.POST.get('token')
connection = get_object_or_404(Connection, token=token)
profile = Profile.objects.get(connection=connection)
if profile.connection.ptc:
if profile.account.ptc:
auth = 'ptc'
else:
auth = 'google'
Expand Down

0 comments on commit 6e6dce7

Please sign in to comment.