Hiya, thanks for the reply.
So in this case the extra fields are actually denormalized subsets of the
original field, and the reverse relation can use the main field. (At least,
at the moment, that's my plan, but that could change. Which I guess goes to
show how rare this case probably actual
Hello,
I believe you need related_name, for disambiguation at least. Maybe by
setting a db_table you can bypass the related_name but I'm not convinced.
Actually, I'm "parasiting" your post to ask when "[we]'d prefer Django
didn't create a backwards relation"?
Regards,
--
You received this
I have a model with more than one (3 in fact) ManyToManyFields which
point to the same other model.
As long as I specify distinct related_names for each, all is well.
But the documentation [1] suggests that if I don't need the backwards
relation, then specifying '+' as the related_name should wor
3 matches
Mail list logo