diff --git a/district/models.py b/district/models.py index f04cff97d9981350cf72681d6f52db962e2cdd6c..f0d1b70a7f184526aadd724dd6f0889249d989fc 100644 --- a/district/models.py +++ b/district/models.py @@ -668,6 +668,12 @@ class DistrictPeoplePage(MainPeoplePageMixin): ### OTHERS + @classmethod + def allowed_subpage_models(cls): + # Get all page types and remove the unwanted child page type + allowed_pages = super().allowed_subpage_models() + return [page for page in allowed_pages if page.__name__ != 'DistrictOctopusPersonPage'] + def get_syncable_octopus_groups(self): groups = []