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

Fix imports with --sitegroup-parent-always-region #192

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

snaselj
Copy link
Contributor

@snaselj snaselj commented Nov 29, 2024

Closes #191

When using --sitegroup-parent-always-region, the necessary location types are pre-created and cached. Those cached records are saved only in the case there is a reference, that the cached record is used. This reference was missing, when field.constant was used in the field definition.

What's Changed

  • Added referencing cached location types created when --sitegroup-parent-always-region is used.

@snaselj snaselj self-assigned this Nov 29, 2024
@snaselj snaselj marked this pull request as ready for review November 29, 2024 09:48
Copy link
Contributor

@chadell chadell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

LocationType matching query does not exist. Foreign key violation for table dcim:locationtype
2 participants