Skip to content

Instantly share code, notes, and snippets.

@justinvdm
Created February 13, 2017 10:23
Show Gist options
  • Save justinvdm/c9be4176f74da29c114dfc48c6477dfa to your computer and use it in GitHub Desktop.
Save justinvdm/c9be4176f74da29c114dfc48c6477dfa to your computer and use it in GitHub Desktop.
diff --git a/mentorship/mentor/views.py b/mentorship/mentor/views.py
index 485fa3c..bda28ff 100644
--- a/mentorship/mentor/views.py
+++ b/mentorship/mentor/views.py
@@ -798,7 +798,7 @@ class MatchByQueryFilter(filters.FilterSet):
mentor_email = django_filters.CharFilter(name="user__email")
mentor_external_id = django_filters.CharFilter(name="external_id")
mentee_email = django_filters.CharFilter(name="mentee__user__email")
- mentor_external_id = django_filters.CharFilter(name="mentee__external_id")
+ mentee_external_id = django_filters.CharFilter(name="mentee__external_id")
class Meta:
model = Mentor
@@ -806,7 +806,7 @@ class MatchByQueryFilter(filters.FilterSet):
'mentor_email',
'mentor_external_id',
'mentee_email',
- 'mentor_external_id'
+ 'mentee_external_id'
)
@codiebeulaine
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment