#31197: CheckConstraints with F objects don't apply on SQLite -------------------------------------+------------------------------------- Reporter: Adam (Chainz) | Owner: nobody Johnson | Type: Bug | Status: new Component: Database layer | Version: 2.2 (models, ORM) | Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by Simon Charette):
* version: master => 2.2 * stage: Unreviewed => Accepted Comment: This looks similar to #30754. We don't pass `simple_col` anymore in master hence why I wasn't able to reproduce. It's an attribute of the `Query` (306b6875209cfedce2536a6679e69adee7c9bc6a). > this doesn't get passed down to the F objects because the intermediate CombinedExpressions don't pass on the parameter There could a few things involved but `CombinedExpressions` effectively doesn't pass along `simple_col`, in fact it doesn't even accepts it. https://github.com/django/django/blob/ef22cf41af092d598208b4d373fe40403c2366dd/django/db/models/expressions.py#L465-L470 -- Ticket URL: <https://code.djangoproject.com/ticket/31197#comment:2> 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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/068.d39deec680434a7893c095b293442dc3%40djangoproject.com.