You are here: Home / LBN / Up2date / Cloud Computing / BastionLinux 25 / python3-django-sortedm2m-1.3.3-1.lbn25.py37.noarch

python3-django-sortedm2m-1.3.3-1.lbn25.py37.noarch

Package Attributes
RPM  python3-django-sortedm2m-1.3.3-1.lbn25.py37.noarch.rpm Architecture  noarch Size  128561 Created  2023/06/18 04:37:36 UTC
Package Specification
Summary A flexible & capable API layer for Django
Group Unspecified
License UNKNOWN
Home Page https://github.com/django-sortedm2m/django-sortedm2m
Description

sortedm2m is a drop-in replacement for django’s own ManyToManyField. The provided SortedManyToManyField behaves like the original one but remembers the order of added relations. Usecases

Imagine that you have a gallery model and a photo model. Usually you want a relation between these models so you can add multiple photos to one gallery but also want to be able to have the same photo on many galleries.

This is where you usually can use many to many relation. The downside is that django’s default implementation doesn’t provide a way to order the photos in the gallery. So you only have a random ordering which is not suitable in most cases.

You can work around this limitation by using the SortedManyToManyField provided by this package as drop in replacement for django’s ManyToManyField.

Requires
rpmlib(PayloadFilesHavePrefix)  
rpmlib(FileDigests)  
rpmlib(CompressedFileNames)  
rpmlib(PartialHardlinkSets)  
rpmlib(PayloadIsXz)  
Provides
python3-django-sortedm2m
python3.7dist(django-sortedm2m)
python3dist(django-sortedm2m)

Document Actions