aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/users/views.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ctrack/users/views.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ctrack/users/views.py b/ctrack/users/views.py
index a292191..fcc0e84 100644
--- a/ctrack/users/views.py
+++ b/ctrack/users/views.py
@@ -11,7 +11,11 @@ User = get_user_model()
class UserDetailView(LoginRequiredMixin, DetailView):
model = User
+
+ # This names the field in the model that contains the slug. Want it to be thise so that is a good
+ # citizen to be used in a URL
slug_field = "username"
+
slug_url_kwarg = "username"