# What changed in django-postgres-extra

> 10 changes in django-postgres-extra 3 from its official release notes, upgrade guides and advisories: 3 new APIs and options. Each one cited. Sources checked 2026-10-22. HTML: https://unstale.sh/pypi/django-postgres-extra/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## django-postgres-extra 3

### New APIs and options

- Allows customizing the primary key on partitioned models using Django 5.2's CompositePrimaryKey. (3.0.0) — [release notes](https://github.com/SectorLabs/django-postgres-extra/releases/tag/v3.0.0)
- Adds support for restart_identity on the truncate operation. (3.0.0) — [release notes](https://github.com/SectorLabs/django-postgres-extra/releases/tag/v3.0.0)
- Adds tablespace support for partitioned models. (3.0.0) — [release notes](https://github.com/SectorLabs/django-postgres-extra/releases/tag/v3.0.0)

### Behavior and default changes

- Allows tuples as a valid type for meta.key. (3.0.0) — [release notes](https://github.com/SectorLabs/django-postgres-extra/releases/tag/v3.0.0)

### Fixes and other changes

- Adds support for Django 5.2. (3.0.0) — [release notes](https://github.com/SectorLabs/django-postgres-extra/releases/tag/v3.0.0)
- Makes multi-day partitions deterministic and aligned. (3.0.0) — [release notes](https://github.com/SectorLabs/django-postgres-extra/releases/tag/v3.0.0)
- Makes PostgresModelDataMigrator work for scheduled rebuilds of a table. (3.0.0) — [release notes](https://github.com/SectorLabs/django-postgres-extra/releases/tag/v3.0.0)
- Adds support for Python 3.13. (3.0.0) — [release notes](https://github.com/SectorLabs/django-postgres-extra/releases/tag/v3.0.0)
- Fixes renamed annotations that rely on group by clauses not working. (3.0.0) — [release notes](https://github.com/SectorLabs/django-postgres-extra/releases/tag/v3.0.0)
- Fixes StopIteration. (3.0.0) — [release notes](https://github.com/SectorLabs/django-postgres-extra/releases/tag/v3.0.0)
