dr
django-relatives
pypi i django-relatives
dr

django-relatives

Utilities for linking to related objects in Django admin

by Trey Hunner

1.2.2 (see all)
pypi i django-relatives
Readme

================

django-relatives

.. image:: https://travis-ci.org/treyhunner/django-relatives.png?branch=master :target: https://travis-ci.org/treyhunner/django-relatives :alt: Test Status

.. image:: https://coveralls.io/repos/treyhunner/django-relatives/badge.png?branch=master :target: https://coveralls.io/r/treyhunner/django-relatives :alt: Coverage Status

.. image:: https://pypip.in/v/django-relatives/badge.png :target: https://crate.io/packages/django-relatives :alt: Latest Version

.. image:: https://pypip.in/d/django-relatives/badge.png :target: https://crate.io/packages/django-relatives :alt: 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.

.. _PyPI: https://pypi.python.org/pypi/django-relatives/

Screenshots

.. image:: https://raw.github.com/treyhunner/django-relatives/master/docs/images/contents_or_fk_link_example.png :alt: Use hyperlinks for read-only foreign keys on change forms :target: https://django-relatives.readthedocs.org/en/latest/usage.html#linking-to-foreign-keys

.. image:: https://raw.github.com/treyhunner/django-relatives/master/docs/images/object_edit_link_example.png :alt: Add edit links to admin inlines :target: https://django-relatives.readthedocs.org/en/latest/usage.html#customizing-inline-edit-links

.. image:: https://raw.github.com/treyhunner/django-relatives/master/docs/images/related_objects_example.png :alt: Link to reverse relations from from change forms :target: https://django-relatives.readthedocs.org/en/latest/usage.html#linking-to-reverse-relations

Thanks to the community for inspiration:

  • linked readonly foreign key code snippet_
  • django-inlaws_
  • various StackOverflow answers_ about related object links in admin

.. _django-inlaws: https://github.com/callowayproject/django-inlaws .. _stackoverflow answers: http://stackoverflow.com/a/5331032/98187 .. _linked readonly foreign key code snippet: http://djangosnippets.org/snippets/2657/

Changes

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.

GitHub Stars

14

LAST COMMIT

1yr ago

MAINTAINERS

1

CONTRIBUTORS

3

OPEN ISSUES

5

OPEN PRs

1
VersionTagPublished
1.3.0a3
1yr ago
1.3.0a2
1yr ago
1.3.0a1
1yr ago
1.2.2
1yr ago
No alternatives found
No tutorials found
Add a tutorial