I have a DetailView which contains a get function. This get function checks if a certain condition holds true, if it does then throw an error. However, I\'m having difficulty ge
You get the slug from the kwargs: kwargs['id'].
kwargs['id']