1👍
You can’t do that sort of dynamic filtering in the urlconf. Subclass DetailView and override get_queryset
to filter on self.kwargs['username']
.
Source:stackexchange.com
1👍
You can’t do that sort of dynamic filtering in the urlconf. Subclass DetailView and override get_queryset
to filter on self.kwargs['username']
.