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)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay