﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
37115	Title: Add support for Generic Relations / Table-Valued Expressions in the ORM	Pravin	Pravin	"This ticket proposes the implementation of a generic Relation API within the Django ORM to support Table-Valued Expressions (TVEs) and functions that return sets of rows. 

A generic Relation API will lay the groundwork for cleanly implementing several advanced querying features across different databases, including:

- PostgreSQL `generate_series()` (and potential equivalents for other backends).
- Subqueries acting as derived tables directly within the `FROM` clause.
- Database abstraction for `json_each()` , `JSON_TABLE` and `json_array_elements()`.
- Deprecation of `FilteredRelation`.


== References & Context
- Django Forum Discussion: [https://forum.djangoproject.com/t/proposal-add-generate-series-support-to-contrib-postgres/21947]
- Django New Features Thread:[https://github.com/django/new-features/issues/25]
- Official GSoC 2026 Announcement: [https://www.djangoproject.com/weblog/2026/may/05/gsoc-2026-django-contributors/]"	New feature	assigned	Database layer (models, ORM)	6.0	Normal		Table Value expressions, Set returning functions, SRF, generate_series, Postgres, Orm	Pravin	Unreviewed	0	0	0	0	0	0
