Fix typo on Users view
@@ -91,8 +91,9 @@ class UserDetailView(SelfOnly, TemplateView):
assert "pk" in list(self.kwargs.keys())
try:
- if self.kwargs["pk"] == None :
+ if self.kwargs["pk"] is None:
return User.objects.get(self.kwargs["pk"])
+ return User.objects.get(pk=self.kwargs["pk"])
except User.DoesNotExist:
raise Http404
