Friday, November 22, 2024

Re: Join on table query without foreign key association

Why not use the ORM as intended?  The ability to use field lookup syntax with foreign key fields is incredibly powerful. Probably worth the refactor time. 


On Fri, Nov 22, 2024 at 6:39 PM 'Ryan Nowakowski' via Django users <django-users@googlegroups.com> wrote:


On November 21, 2024 9:10:10 PM CST, "苏子阔" <zikuosu@gmail.com> wrote:
In my project, I did not use foreign keys such as models ForeignKey. Instead, models were used BigIntegralField to associate with other tables
For example: customer-id=models BigIntegralField() stores the ID field of the customer table
But now what should I do if I want to use a join on query?
For example, TopUp. objects. select_delate ("customer-id").
Please help me,thank you!

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/django-users/79205116-E740-4782-A832-F65563669A38%40fattuba.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/django-users/CALmEK1vG8cVq06vmF5koAggHt2fPmMxBbcWUi58ucfeudWxAvw%40mail.gmail.com.

No comments:

Post a Comment