django-related-field-display
A simple Django admin mixin to easily display and link related model fields using __ syntax.
This package allows you to use the double underscore (__) syntax in list_display and list_filter attributes of Django admin classes to display related model fields without needing to write custom methods or properties.
This project is inspired from django-admin-related package, but it is deprecated and not maintained anymore.
Installation
pip install django-related-field-display
Usage
from django.contrib import admin
from related_field_display.admin import RelatedFieldDisplayMixin
from .models import YourModel
@admin.register(YourModel)
class YourModelAdmin(RelatedFieldDisplayMixin, admin.ModelAdmin):
list_display = ('id', 'related_field__name', 'another_field')
list_filter = ('related_field__category',)
ordering = ('-id',)
PyPI
Metadata
Release files for django-related-field-display 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_related_field_display-0.1.3.tar.gz | 3.8 kB | Without provenance | Details for django_related_field_display-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_related_field_display-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for django_related_field_display-0.1.3-py3-none-any.whl |
Total release size: 7.8 kB
Security for django-related-field-display 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.