We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin could create lots of users, yet each user must only view or update there own services/projects.
The text was updated successfully, but these errors were encountered:
Eventually I would like to support something like this, but it will require a bit of refactoring first
Sorry, something went wrong.
We have a fork version of promgen in our comany, we just modify the ServiceListView to did that.
class ServiceList(LoginRequiredMixin, ListView): template_name = 'promgen/service_list.html' def get_queryset(self): paginate_by = 20 services = models.Service.objects if not self.request.user.is_superuser: services = models.Service.objects.filter(owner = self.request.user) return services.prefetch_related( "rule_set", "rule_set__parent", "project_set", "project_set__owner", "project_set__shard", "project_set__notifiers", "project_set__notifiers__owner", "project_set__notifiers__filter_set", "project_set__farm", "project_set__exporter_set", "owner", "notifiers", "notifiers__owner", "notifiers__filter_set", )
No branches or pull requests
Admin could create lots of users, yet each user must only view or update there own services/projects.
The text was updated successfully, but these errors were encountered: