-
Notifications
You must be signed in to change notification settings - Fork 3
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
sample_project: URIs are created but not linked with the entities #1473
Comments
If I create a new object in the discworld instance, it does get an URI assigned. I guess the dangling URIs are a problem with our fixtures. |
Yeah I thought that must've been the case but URI data isn't in the fixture so I guess they're automatically created but not linked to the entity for whatever reason... |
Ah, interesting, I didn't know that the URIs are not part of the fixtures. But yes, thats weird. I wonder how the URIs are created then... |
https://docs.djangoproject.com/en/5.1/topics/db/fixtures/#how-fixtures-are-saved-to-the-database says:
So I think with "the instance only contains attributes that are local to the model" might mean there is not foreign key to the root model (yet) and thats why the Uri gets created with the I'd say lets do what the documentation says and disable the signal for fixture loading |
Fixtures should contain all the data anyway, so the automatic creation of the default uri should be skipped. Closes: #1473
Fixtures should contain all the data anyway, so the automatic creation of the default uri should be skipped. Closes: #1473
https://discworld.acdh-ch-dev.oeaw.ac.at/apis_metainfo.uri/
The text was updated successfully, but these errors were encountered: