Commit 14124cd1 authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier

fix: remove old buggy

parent 9310da3d
Pipeline #7240 passed with stage
in 27 seconds
from djangoldp.views import LDPViewSet
import requests
from djangoldp.views import LDPViewSet
from .models import Project
class ProjectViewSet(LDPViewSet):
model = Project
permission_classes = []
nested_fields = ["members"]
def update(self, request, *args, **kwargs):
response = super().update(request, *args, **kwargs)"",
json={"@context": "",
"@graph": [{"object": str(self.get_object().get_absolute_url()), "type": "Update"}]})
return response
Project._meta.view_set = ProjectViewSet
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