-
Notifications
You must be signed in to change notification settings - Fork 260
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
#727 wip, added tests #729
base: master
Are you sure you want to change the base?
#727 wip, added tests #729
Conversation
A few tests (5) fail now, because the test object cannot be deleted anymore ;) |
I can't get it to work properly. See my latest commit, that's how it's supposed to be setup? |
Any time/input, here? For me, it's a use case of modeltranslation - having an abstract base class with a foreign key, and having multiple classes that inherit from it, each using translated fields. As it's in the tests: It's really deep in the Django core, I still think I was right here: "Django thinks that the two fields of the child models belong to the same model, and then trigger the TypeError / Cannot combine queries on two different base models error, during the update query for the "models.SET_NULL" foreign keys. That's what I think, I might be wrong." So it's somewhere in Metaclasse, wherever hidden deep? |
Hello! Last time we stopped at the step where it fails just as it should fail, e.q. "issue is present and we have correct test-case for reproducing it". Right? As for what to do next, I don't know. Have you tried removing class SecondSetNullForeignKeyModelTranslationOptions(SetNullForeignKeyBaseModelTranslationOptions, TranslationOptions):
fields = [
"translated22",
] If removing it helps, great. If it doesn't help - try digging deeper, and ask questions. I'll try to share my knowledge, but this project is fairly complex and I just doing maintenance here, I'm not the original creator. |
Thanks @last-partizan thanks. I will dig then :) |
I've added tests, but don't know how I could add migrations for the new models needed for testing.