[Answered ]-Additional params in URL for Django DetailView

2👍

Yes, it is. You can access the additional kwargs via the kwargs dict in your view (assuming CBV).

For example, in a class-based view, you could self.kwargs['memes']

Note that this won’t automatically say…do the object lookup for you (if you’re writing a Detail View). You’d have to override get_object() for that.

👤Kye

Leave a comment