DEV Community

Vicente G. Reyes
Vicente G. Reyes

Posted on

3 1

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)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up