#36466: Relax check E042 preventing including stored generated fields in
composite
primary keys
-------------------------------------+-------------------------------------
Reporter: David Sanders | Owner: (none)
Type: | Status: new
Cleanup/optimization |
Component: Database layer | Version: dev
(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
-------------------------------------+-------------------------------------
Comment (by David Sanders):
For 2 I think you mean `db_persist=True` ;)
But yeah I just noticed that option 1. actually is inline with this:
```
pk = GeneratedField(pk=True, ...)
```
There's no check for this but it will work as long as `db_persist=True`
for mysql & pg, but will fail for sqlite.
--
Ticket URL: <https://code.djangoproject.com/ticket/36466#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 visit
https://groups.google.com/d/msgid/django-updates/010701977c7cb06d-937a5528-3a63-49ea-9a05-2643950eeed1-000000%40eu-central-1.amazonses.com.