python - django-zinnia-blog: decorators to mixins -


with django-blog-zinnia have older code

from zinnia.views.decorators import update_queryset  def qset():     return blogentry.objects.filter(status=2).filter(creation_date__gte=cutoff) view_blogs = update_queryset(object_list, qset) 

the problem update_queryset gives me

importerror @ /  no module named decorators 

it has move class based views. how use mixin update?


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -