Commit 41dbced3 authored by Jean-Baptiste's avatar Jean-Baptiste

syntax: Explicit AnonymousReadOnly permission

parent c30fe1d6
Pipeline #1956 passed with stage
in 27 seconds
"""djangoldp joboffer URL Configuration"""
from django.conf.urls import url
from djangoldp.permissions import AnonymousReadOnly
from djangoldp.views import LDPViewSet
from .models import JobOffer
urlpatterns = [
url(r'^job-offers/', LDPViewSet.urls(model=JobOffer, nested_fields=["skills"])),
url(r'^job-offers/', LDPViewSet.urls(model=JobOffer, nested_fields=["skills"], permission_classes=[AnonymousReadOnly])),
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment