Skip to content

Commit 78256f5

Browse files
committed
fix naming and align with url name pattern
1 parent 28d0a3e commit 78256f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

djangocms_rest/serializers/placeholders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def to_representation(self, instance):
132132
{
133133
placeholder.slot: self.host
134134
+ reverse(
135-
"cms-placeholder-detail",
135+
"placeholder-detail",
136136
args=(
137137
self.language,
138138
content_type_id,

djangocms_rest/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
path(
1111
"<slug:language>/placeholders/<int:content_type_id>/<int:object_id>/<str:slot>/",
1212
PlaceholderDetailView.as_view(),
13-
name="cms-placeholder-detail",
13+
name="placeholder-detail",
1414
),
1515
]

0 commit comments

Comments
 (0)