Hello,

I would like to know if it is posible to join a filter in a detail view ?

I want to put this :

def index(request):
    model_list = Model.objects.all()
    model_filter = ModelFilter(request.GET, queryset=model_list)

    return render(request, 'model/index.html', {'filter': model_filter})

in this :

class DetailView(generic.DetailView):
    model = Event
    template_name = 'event/detail.html'
    
    def get_queryset(self):
        return Event.objects.filter()




-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/525bd4c1-7137-4551-b69e-f82abd8dcaf0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to