-
Notifications
You must be signed in to change notification settings - Fork 1
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
WIP: [Sitebuilder] Make snippets aware of multiple sites #35
base: master
Are you sure you want to change the base?
Conversation
2c573c0
to
5acb405
Compare
5acb405
to
3c14a42
Compare
…depending on the host (site) from which the admin is being accessed
3b30633
to
9199337
Compare
For the commit "Fix merge conflicts with master". I'm not sure what this is doing? Could you instead merge master into this branch to resolve conflicts? |
@@ -5,7 +5,7 @@ | |||
<div class="nice-padding"> | |||
{# Need to keep the form in the HTML, even if the snippet is not searchable #} | |||
{# This is to allow pagination links to be generated from the form action URL #} | |||
<form class="snippet-search search-bar" action="{% url 'wagtailsnippets:choose' model_opts.app_label model_opts.model_name site.id %}" method="GET" novalidate> | |||
<form class="snippet-search search-bar" action="{% url 'wagtailsnippets:choose' site.id model_opts.app_label model_opts.model_name %}" method="GET" novalidate> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the reason for changing the order of these parameters?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh, I see it now. It makes it possible to insert the site id into the URL in wagtail_hooks.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Thanks for the review.
@kaedroho the commit message is somewhat misleading. The commit merge |
These changes look good to me |
@kaedroho Added a commit to add js file |
https://projects.torchbox.com/projects/girl-effect-corporate-site/tickets/146
This PR implements site-based isolation into Wagtail's snippets module. All snippets are now associated with a site, and editors who have not got permission to edit pages in a site will no longer have permission to edit snippets for that site as well.
TODO: