Monday, October 21, 2019

taggit with CBV

I use taggit with CBV I created one ListView deals with two querysets first if we don't have parameter in url retrieve all posts from database if we have slug from taggit then show only the posts that urls slug matched with slug in database using if statement but the problem is when I go to the post without any slug it's suppose to show me the all posts but didn't do that and send me this error. when I add manually the slug it works very well but the problem with all posts


1.png

2.png


3.png

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/bebc6aa0-cc6d-4d16-940e-2be17ad048fe%40googlegroups.com.

No comments:

Post a Comment