usergroups

Filter view based on the users Group

Filter view based on the users Group Question: I am trying to filter the query further to only show records where the Groups matches the logged in users group. I am new to Python and not sure how to add an additional filter into the below view. View @login_required(login_url=’login’) def home(request): q= request.GET.get(‘q’) if request.GET.get(‘q’) …

Total answers: 1