Story #8068 » hardcoded.patch
pulp_container/app/registry_api.py | ||
---|---|---|
from django.conf import settings
|
||
from guardian.shortcuts import get_objects_for_user
|
||
from pulpcore.plugin.models import Artifact, ContentArtifact, UploadChunk
|
||
from pulpcore.plugin.files import PulpTemporaryUploadedFile
|
||
from rest_framework.exceptions import (
|
||
... | ... | |
serializer_class = ContainerCatalogSerializer
|
||
pagination_class = ContainerCatalogPagination
|
||
def get_queryset(self):
|
||
queryset = super().get_queryset()
|
||
permission = "container.pull_containerdistribution"
|
||
return get_objects_for_user(self.request.user, permission, queryset)
|
||
class ContainerTagListSerializer(ModelSerializer):
|
||
"""
|
- « Previous
- 1
- 2
- 3
- Next »