Skip to content

Commit

Permalink
Allow live content embed from current region
Browse files Browse the repository at this point in the history
  • Loading branch information
membralala committed Feb 16, 2022
1 parent dd14940 commit 1e92a01
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions integreat_cms/cms/forms/pages/page_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,6 @@ def __init__(self, **kwargs):
# Pass form object to ParentFieldWidget
self.fields["parent"].widget.form = self

# Exclude current region from choices for mirrored content
self.fields["mirrored_page_region"].queryset = Region.objects.exclude(
id=self.instance.region_id
)

# Limit possible parents to pages of current region
parent_queryset = self.instance.region.pages.all()

Expand Down

0 comments on commit 1e92a01

Please sign in to comment.