Skip to main content
django-sortedmanytomany
=======================

> In Django, if you need to order a many to many relation you will have to do it by using inlines width a foreign key and a sorting field. If there is no need to add another field in this relation, use inlines would make the admin interface complex where a simple many to many should do the trick.

Installation
------------

```sh
pip install django-sortedmanytomany
```

Adding to installed apps
------------------------

- To use the many to many sorted field, you have to add it to your INSTALLED_APPS on your project's settings.py so the needed static files can be loaded:

```python
INSTALLED_APPS = (
...
'sortedmanytomany',
)
```

Using SortedManyToManyField
---------------------------

- To use SortedManyToMany field, just create a field as if you were adding the default ManyToMany

```python
from django.db import models
from sortedmanytomany.models import SortedManyToManyField

class Album(models.Model):
...
tracks = SortedManyToManyField('Track')

class Track(models.Model):
...
```

License
-------

MIT

Metadata

Release files for django-sortedmanytomany 0.1.3

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-sortedmanytomany 0.1.3
File Size Uploaded Provenance Actions
django-sortedmanytomany-0.1.3.tar.gz 8.4 kB Without provenance Details for django-sortedmanytomany-0.1.3.tar.gz

Release files / django-sortedmanytomany-0.1.3.tar.gz

Download URL django-sortedmanytomany-0.1.3.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9f937a4263141b83779f558bb0a14ccaaac9047b2383eb759d7aec687be2cd2c
BLAKE2b-256 checksum
How to use checksums
10b7479531ba88b41d706707c560cc5943153c55684b996350a447281b6a86de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-sortedmanytomany 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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