def get_model_queryset(model, request=None):
 if use_draft(request):
  return model.objects.drafts()
 return model.objects.public()

def get_model_queryset ( model , request = None ) : if use_draft ( request ) : return model . objects . drafts ( ) return model . objects . public ( )
decision function used in frontend - says which model should be used .