You can use db_column:
<https://docs.djangoproject.com/en/5.1/ref/models/fields/#django.db.models.Field.db_column>
<https://docs.djangoproject.com/en/5.1/ref/models/fields/#django.db.models.Field.db_column>
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!
No comments:
Post a Comment