

def get_url_decorator(self, pattern):
    'Fixes bug in Application.get_url_decorator wich would decorate None values.'
    permissions = self.get_permissions(pattern.name)
    if (permissions is not None):
        return permissions_required(permissions)
    return None

dataset/ETHPy150Open django-oscar/django-oscar-api/oscarapi/app.py RESTApiApplication.get_url_decorator/original