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

fix: remove old buggy views.py

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)
requests.post("https://jabber.happy-dev.fr/happydev_muc_admin/",
json={"@context": "https://cdn.happy-dev.fr/owl/hdcontext.jsonld",
"@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