Skip to content
Snippets Groups Projects
Commit 586c72e9 authored by magicfelix's avatar magicfelix
Browse files

Fix uses of changed URL structure

parent 6a04a2e8
No related branches found
No related tags found
1 merge request!1147Implement read-only CalDAV and CardDAV
Pipeline #195619 passed
......@@ -88,7 +88,9 @@ class CalendarType(ObjectType):
return root.get_description(info.context)
def resolve_url(root, info, **kwargs):
return info.context.build_absolute_uri(reverse("calendar_feed", args=[root.name]))
return info.context.build_absolute_uri(
reverse("calendar_feed", args=["calendar", root.name])
)
def resolve_color(root, info, **kwargs):
return root.get_color(info.context)
......@@ -129,4 +131,4 @@ class CalendarBaseType(ObjectType):
return CalendarEventMixin.get_enabled_feeds(info.context)
def resolve_all_feeds_url(root, info, **kwargs):
return info.context.build_absolute_uri(reverse("all_calendar_feeds"))
return info.context.build_absolute_uri(reverse("all_calendar_feeds", args=["calendar"]))
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