Skip to main content

django-gm2m

© 2014+ Thomas Khyn

Django generic many-to-many field implementation.

This django application exposes a GM2MField that combines the features of the standard Django ManyToManyField and GenericForeighKey and that can be used exactly the same way.

It has been tested with Django 5.2.*, 6.* and their compatible Python versions (3.10 to 3.14).

If you like django-gm2m and find it useful, you may want to thank me and encourage future development by sending a few mBTC / mBCH / mBSV at this address: 1EwENyR8RV6tMc1hsLTkPURtn5wJgaBfG9.

Features

  • Works like the built-in Django related fields

  • Creates one table per relation, like ManyToManyField, and not one big table linking anything to anything (django-generic-m2m’s default approach)

  • No need to modify nor monkey-patch the existing model classes that need to be linked

  • Automatic reverse relations when an instance is added

  • Related objects prefetching

  • Through models support

  • Deletion behaviour customization using signals

  • Migrations support

Documentation

The documentation is hosted on readthedocs. You’ll find a quick start and the description of all django-gm2m’s advanced features.

Metadata

Release files for django-gm2m 1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-gm2m 1.4
File Size Uploaded
django_gm2m-1.4.tar.gz 26.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-gm2m 1.4
File Interpreter ABI Platform
django_gm2m-1.4-py3-none-any.whl Python 3 none any Details

Total release size: 79.6 kB

Release files / django_gm2m-1.4.tar.gz

Download URL django_gm2m-1.4.tar.gz
Size 26.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8f5accd02d4dc96f51423b1e199295434217c0723ba6d7fbdc3b3a6e8f5b8c4d
BLAKE2b-256 checksum
How to use checksums
bacd8b597efcb975c18937915ba26282ba4410a086cec0a2d0b9729fc42bfcf4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.2

Release files / django_gm2m-1.4-py3-none-any.whl

Download URL django_gm2m-1.4-py3-none-any.whl
Size 53.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d53d329f9937a6c1c7814e767e9ed938e66a705cbe610054c98b1285ca091e8
BLAKE2b-256 checksum
How to use checksums
7c6cc79be7807a41887c5d130125b849af7e6689d7858ea0222275ce1f7ade93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

1.4 This release

2 release files

1.3

1 release file

1.2

1 release file

1.1.1

1 release file

1.1

1 release file

1.0

1 release file

0.6.1

1 release file

0.6

1 release file

0.5

1 release file

0.4.10

1 release file

0.4.9

1 release file

0.4.8

1 release file

0.4.7

1 release file

0.4.6

1 release file

0.4.5

1 release file

0.4.4

1 release file

0.4.3

1 release file

0.4.2

1 release file

0.4.1

1 release file

0.4

1 release file

0.3

1 release file

0.2.8

1 release file

0.2.7

1 release file

0.2.6

1 release file

0.2.5

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page