#35129: Support customize ForeignKey DDL when db_constraint=False
-------------------------------------+-------------------------------------
Reporter: elonzh | Owner: nobody
Type: Uncategorized | Status: closed
Component: Database layer | Version: 5.0
(models, ORM) |
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Natalia Bidart):
Replying to [comment:2 elonzh]:
> [...] I want is joining tables without db_constraint. Django doesn't
provide a method to achieve this, so I define a fake ForeignKey as a
workround.
Another way of achieving this is by using a slightly more manual approach
involving subqueries. You could also consider seeking more help or ideas
in how to resolve this without using a foreign key by posting your
question n the [https://forum.djangoproject.com/c/users/using-the-orm/17
Django Forum], or using any of the user support channels from
[https://docs.djangoproject.com/en/dev/faq/help/#how-do-i-do-x-why-
doesn-t-y-work-where-can-i-go-to-get-help this link].
--
Ticket URL: <https://code.djangoproject.com/ticket/35129#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018d226e773b-18634eda-6ddb-4ceb-b762-6d908b902250-000000%40eu-central-1.amazonses.com.