Skip to content
Snippets Groups Projects
Commit 88845bd0 authored by magicfelix's avatar magicfelix
Browse files

[DAV] Implement unique_id method for contacts

parent 2b551b3a
No related branches found
No related tags found
1 merge request!1147Implement read-only CalDAV and CardDAV
......@@ -665,6 +665,10 @@ class ContactMixin(DAVResource, RegistryObject, is_registry=True):
def get_dav_absolute_url(cls, reference_object, request: HttpRequest) -> str:
return reverse("dav_resource_contact", args=["contact", cls.name, reference_object.id])
@classmethod
def value_unique_id(cls, reference_object, request: HttpRequest) -> str:
return f"{cls.name}-{reference_object.id}"
class CalendarEventMixin(DAVResource, RegistryObject, is_registry=True):
"""Mixin for calendar feeds.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment