diff options
Diffstat (limited to '')
-rw-r--r-- | ctrack/users/views.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ctrack/users/views.py b/ctrack/users/views.py index fcc0e84..ed29ea1 100644 --- a/ctrack/users/views.py +++ b/ctrack/users/views.py @@ -16,6 +16,8 @@ class UserDetailView(LoginRequiredMixin, DetailView): # citizen to be used in a URL slug_field = "username" + # the name of the URLConf keyword argument that contains the slug. By default, slug_url_kwarg is 'slug'. + # we have to pass 'username' as the argument when testing UserDetailView because of this. slug_url_kwarg = "username" |