Answer the question
In order to leave comments, you need to log in
How to get slug in DetailView?
I can get the slug using functions in views, let's say:
def addAvailability(request, slug):
games = Games.objects.get(id_num=slug)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question