-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apphook config multisite #5458
Apphook config multisite #5458
Conversation
@divio/django-cms-core please review |
@mkoistinen @czpython any chance we can discuss this? |
@yakky |
@czpython as of now, you can reuse the same application name over multiple sites (as unique together takes sites into account) https://github.com/divio/django-cms/blob/release/3.3.x/cms/models/pagemodel.py#L124 |
Hi @yakky can this be squashed into a single commit please and retitled, according to http://docs.django-cms.org/en/release-3.3.x/contributing/development-policies.html#commits? Happy to help with wording, ping me on IRC etc. |
@evildmp will do. @czpython @mkoistinen any more comment on this one? |
All good for me 👍 |
8c53b1e
to
be0b258
Compare
@mkoistinen could you review this? |
LGTM |
Do we want a changelog entry for this? |
I think it wouldn't hurt |
a30e31b
to
5ae5a1a
Compare
Added. Merging when tests complete |
@yakky I am facing the same problem with 3.4.0 |
@razisayyed Please create a new ticket with more information (traceback, requirements.txt, settings, etc.) |
Filter by site_id to allow the namespace to be used in multiple sites. Already fixed in previous versions. django-cms#5458
Filter based on site_id to allow namespace to be used in multisites. Already fixed in previous versions of cms django-cms#5458
Admittedly this was a choice made upon introduction of apphook config, but I can't see a good reason to not allow to reuse the same apphook config on different sites.
application_namespace
is already marked as unique only for each site (https://github.com/divio/django-cms/blob/release/3.3.x/cms/models/pagemodel.py#L124) thus I don't think apphook config should be more restrictive. I'd backport this at least to 3.2.x branch too