Skip to content

Commit

Permalink
Merge pull request #5511 from yakky/feature/apphook_config_multisite_31
Browse files Browse the repository at this point in the history
Removed globally unique constraint for Apphook configs
  • Loading branch information
yakky committed Jul 6, 2016
2 parents 999806c + d9ab2cf commit c368681
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cms/admin/forms.py
Expand Up @@ -288,6 +288,7 @@ def __init__(self, *args, **kwargs):
def _check_unique_namespace_instance(self, namespace):
return Page.objects.filter(
publisher_is_draft=True,
site_id=self.instance.site_id,
application_namespace=namespace
).exclude(pk=self.instance.pk).exists()

Expand Down

0 comments on commit c368681

Please sign in to comment.