Skip to main content

Utilities for linking to related objects in Django admin

Project description

Test Status Coverage Status Latest Version Download Count

Utilities for linking to related objects in Django admin

This app requires Django 2.2 or greater and Python 3.6 or greater.

Getting Help

Documentation for django-relatives is available at https://django-relatives.readthedocs.org/

This app is available on PyPI.

Submit issues on Github: https://github.com/treyhunner/django-relatives/issues

Pull requests are welcome. Read the CONTRIBUTING file for tips on submitting a pull request.

Screenshots

Use hyperlinks for read-only foreign keys on change forms Add edit links to admin inlines Link to reverse relations from from change forms

1.3.0

  • Use related_name (if present) when linking to reverse relations

  • Update admin URL filters to be consistent with Django’s defaults

1.2.2 (2021-09-15)

  • Add support for Django 3.1 and 3.2

  • Drop support for Python 3.5

  • Drop support for Django 1.11

1.2.0 (2020-12-15)

  • Fix ModelAdmin methods used in read-only fields

1.1.0 (2020-01-28)

  • Fix generic foreign key links on change forms

  • Add support for Django 2.2 and Django 3.0

  • Drop support for Python 2

1.0.0 (2018-08-07)

  • Generic relations templatetag support implemented

  • Add support for Django 1.11 through 2.1

0.3.1 (2013-07-27)

  • Reintroduce Django 1.4 support

0.3.0 (2013-07-16)

  • Fix XSS vulnerability

  • Allow relatives/includes/fieldset.html template to be extended further

  • Improve documentation

0.2.0 (2013-06-26)

  • Add related_objects template tag

  • Fix contents_or_fk_link filter on add form for non-nullable foreign keys

  • Rename edit_link utility function to object_link

  • Add generic object_edit_link utility

  • Add generic templates for easy related_objects and contents_or_fk_link use

0.1.0 (2013-05-17)

Initial release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-relatives-1.3.0a2.tar.gz (77.4 kB view details)

Uploaded Source

Built Distribution

django_relatives-1.3.0a2-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file django-relatives-1.3.0a2.tar.gz.

File metadata

  • Download URL: django-relatives-1.3.0a2.tar.gz
  • Upload date:
  • Size: 77.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.1

File hashes

Hashes for django-relatives-1.3.0a2.tar.gz
Algorithm Hash digest
SHA256 19fc9a3f19e1435a93c1bfb39951ef47bb82d644d77f7a4335f9a990bca94e44
MD5 1d00c67ef5678e752cc8ce188f4ad0b3
BLAKE2b-256 c85c2f5ed05288965da9d608d5733f78eca87e10cc095a21de769c8b1f9a51fb

See more details on using hashes here.

File details

Details for the file django_relatives-1.3.0a2-py3-none-any.whl.

File metadata

  • Download URL: django_relatives-1.3.0a2-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.1

File hashes

Hashes for django_relatives-1.3.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 22ff35f8aa318a1fa1d102a8ba14a87d30c46b8f9bccf82af02325a61185c4ac
MD5 0af00e856cbdf6cc0f0da6cd5bb54399
BLAKE2b-256 878b336779878028ae0bcf4faf90abf180723aa1e606e3fe739bfb0da63b668e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page