DEV Community

Vicente G. Reyes
Vicente G. Reyes

Posted on

rant_category() got an unexpected keyword argument 'slug'

Running into an rant_category() got an unexpected keyword argument 'slug' on my django project. Basically, I just need to get the slug of the #category in my app to show it in the url.

Here's my code:

views.py

class RantListView(ListView)
    model = Rant
    context_object_name = "rants"
    template_name = "rants/rant_list.html"


class

Top comments (0)