Fix depth to parent selector
This commit is contained in:
committed by
Michael van Tellingen
parent
fc442171e4
commit
decfc88efe
@@ -139,7 +139,7 @@ def copy_page_view(request, page_id, segment_id):
|
||||
}
|
||||
|
||||
try:
|
||||
variant = Page.objects.get(slug=slug, depth=page.depth)
|
||||
variant = Page.objects.get(slug=slug, parent=page.parent)
|
||||
except Page.DoesNotExist:
|
||||
variant = page.copy(update_attrs=update_attrs, copy_revisions=False)
|
||||
|
||||
|
Reference in New Issue
Block a user