@membership_required
def topic_remove(request, slug, topic_id,
        template_name='groups/topics/topic_remove_confirm.html'):
    group = get_object_or_404(Group, slug=slug)
    topic = get_object_or_404(GroupTopic, pk=topic_id, group=group, user=request.user)
    if request.method == 'POST':
        topic.is_active = False
        topic.save()
        return redirect(request, group)
    return render(request, template_name, {'topic': topic})
Construct a iterable which can be used to iterate over view query
dataset/ETHPy150Open nathanborror/django-basic-apps/basic/groups/views/topics.py/topic_remove--crossover with--dataset/ETHPy150Open couchbase/couchbase-python-client/couchbase/views/iterator.py/View.__init__