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

Weird Circular Dependency Exception when importing #163

Open
ElectronicRU opened this issue Feb 8, 2024 · 0 comments
Open

Weird Circular Dependency Exception when importing #163

ElectronicRU opened this issue Feb 8, 2024 · 0 comments

Comments

@ElectronicRU
Copy link

Hello,
tried to use wagtail-transfer to move some data between my servers. Stumbled upon a very weird CircularDependencyException: the resolution path is [create revision id # 114, create page id # 13] and current operation is create revision id # 114. Looks like it followed the page link from revision and then latest_revision link back to Page, and errored out? I'm not sure what's going on, this seems like a normal situation that the code can't handle.

I do load data into pages with my management commands with the following snippet:

rev = page.save_revision()
if publish:
    page.publish(rev)

Again, this looks correct to me, but perhaps I'm subtly messing something up. Could you help me out?

P.S. I've also gotten another CircularDependencyException, but that was a more reasonable one - my site root page has a StreamField which links back to it. A bummer, but understandable; seems like I'll have to special-case it.

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

No branches or pull requests

1 participant