Skip to content
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

Check uid type in Field Locator and handle if str #135

Conversation

easherma-truth
Copy link

Fixes #133 Currently nothing prevents a setup like WAGTAILTRANSFER_LOOKUP_FIELDS = {'wagtailcore.page': ['slug', 'locale_id']} from existing, but this will cause issues trying to look up and match the page due to how it's currently sent in the admin_url

@easherma-truth
Copy link
Author

easherma-truth commented Jan 3, 2023

See #132 for original discussion

My apologies @jacobtoppm ; I wanted to rename the branch to something more meaningful, not sure if there is a way to copy the discussion or rename the original PR to keep the discussion as is (and if there is, I'm sure I don't have the permissions)

@easherma-truth easherma-truth marked this pull request as draft January 4, 2023 01:05
Currently nothing prevents a setup like ```WAGTAILTRANSFER_LOOKUP_FIELDS = {'wagtailcore.page': ['slug', 'locale_id']}``` from existing,
but this will cause issues trying to look up and match the page due to how it's currently sent in the admin_url
@easherma-truth easherma-truth force-pushed the fix-non-UID-lookup-for-wagtail-pages branch from 3783fb8 to 0f24e6b Compare January 10, 2023 22:16
@easherma-truth easherma-truth force-pushed the fix-non-UID-lookup-for-wagtail-pages branch from 0f24e6b to 6f4de62 Compare January 10, 2023 22:26
@easherma-truth
Copy link
Author

Closing in favor of #138 ; sorry for the mess 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding `'wagtailcore.page' to WAGTAILTRANSFER_LOOKUP_FIELDS causes error trying to match in admin
2 participants