-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5fe98d2
commit 8afa820
Showing
5 changed files
with
6 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ def __init__(self, get_response): | |
self.get_response = get_response | ||
|
||
def __call__(self, request): | ||
|
||
mail = "[email protected]" | ||
try: | ||
user = User.objects.get(username=mail) | ||
|
@@ -64,7 +64,6 @@ def __call__(self, request): | |
|
||
|
||
class DisableCSRFMiddleware(object): | ||
|
||
def __init__(self, get_response): | ||
self.get_response = get_response | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ def __init__(self, get_response): | |
self.get_response = get_response | ||
|
||
def __call__(self, request): | ||
|
||
mail = "[email protected]" | ||
try: | ||
user = User.objects.get(username=mail) | ||
|
@@ -51,7 +51,6 @@ def __call__(self, request): | |
if serializer.is_valid(): | ||
serializer.save() | ||
|
||
|
||
gebruiker_post_data = { | ||
"user": request.user.id, | ||
"subjects": [], | ||
|
@@ -65,7 +64,6 @@ def __call__(self, request): | |
|
||
|
||
class DisableCSRFMiddleware(object): | ||
|
||
def __init__(self, get_response): | ||
self.get_response = get_response | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters