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 package usage policy not getting set automatically from the license #200 #262

Merged
merged 3 commits into from
Feb 18, 2025

Conversation

tdruez
Copy link
Contributor

@tdruez tdruez commented Feb 14, 2025

This is likely a side effect of recent changes on the update_from_data() method that builds a update_fields list to trigger a proper SQL UPDATE.

The associated package/license policy is properly set on the model in SetPolicyFromLicenseMixin but the usage_policy entry is missing from the update_fields. As a result the usage_policy value is not included in the UPDATE.

Also contains a workaround for #30

@tdruez tdruez merged commit 7fc145e into main Feb 18, 2025
3 checks passed
@tdruez tdruez deleted the 200-automatic-policy branch February 18, 2025 20:01
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.

1 participant