#35269: GeneratedFields can't be defined on RelatedFields
-------------------------------------+-------------------------------------
Reporter: Perrine L. | Owner: nobody
Type: Bug | 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
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):
* resolution: => invalid
* status: new => closed
Comment:
Hi Perrine, this ticket should only be re-opened if you do as Mariusz
requested and provide a valid column DDL definition that you believe is
not currently supported.
I believe this will not be possible as
[https://www.postgresql.org/docs/current/ddl-generated-columns.html the
linked documentation states] and Mariusz mentioned, `GeneratedFields`
cannot reference anything other than the current row in **any way** and
being a `ForeignKey` is a reference to an external model.
Thank you for the sample project and I can see what you're trying to do.
As what you're suggesting would be a new feature to Django, the
recommended path forward is to first propose and discuss the idea with the
community and gain consensus that this would be a desirable addition to
Django. To do that, please consider starting a new conversation on the
[https://forum.djangoproject.com/c/internals/5 Django Forum], where you'll
reach a wider audience and likely get extra feedback.
I'll close this ticket, but if there is a community agreement for the
feature request, you are welcome to create a ticket for the new feature
and point to the forum topic. For more details, please see
[https://docs.djangoproject.com/en/stable/internals/contributing/bugs-and-
features/#requesting-features the documented guidelines for requesting
features].
--
Ticket URL: <https://code.djangoproject.com/ticket/35269#comment:4>
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/0107018e9fb0a1ff-483746ea-e033-4ea1-82c5-a9a8fd878280-000000%40eu-central-1.amazonses.com.