Skip to main content

django-relatedadminwidget

Widget for displaying edit and delete links alongside foreign key admin widgets

![Flowers](https://github.com/benjaoming/django-relatedadminwidget/raw/master/screenshot.png)

Also see this project: [django-admin-enhancer](https://github.com/charettes/django-admin-enhancer)

Installation:

  1. pip install django-relatedadminwidget

  2. Add “relatedwidget” to settings.INSTALLED_APPS

  3. You may want to run your project’s ./manage.py collectstatic

  4. In your applications’ admin.py, let the model admins inherit from RelatedWidgetWrapperBase like in this example:

    from django.contrib import admin from relatedwidget import RelatedWidgetWrapperBase

    class MyModelAdmin(RelatedWidgetWrapperBase, admin.ModelAdmin):

    pass

    admin.site.register(MyModel, MyModelAdmin)

It also works with TabularInline and StackedInline! Remember the order of inheritence, always put RelatedWidgetWrapperBase first!

Troubleshooting

If you get a TemplateDoesNotExist error on ‘relatedwidget/widget.html’, you might have to add django.template.loaders.eggs.Loader to your settings.TEMPLATE_LOADERS.

Credits

User [nasp](http://djangosnippets.org/users/nasp/) did most of the work, I just updated it for Django 1.4 and packed it as an app.

Metadata

Release files for django-relatedadminwidget 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for django-relatedadminwidget 0.1
File Interpreter ABI Platform
django_relatedadminwidget-0.1-py3-none-any.whl Python 3 none any Details

Release files / django_relatedadminwidget-0.1-py3-none-any.whl

Download URL django_relatedadminwidget-0.1-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae7a3e55e75cfd1888d07d9a06a4cf92a7cf7262f4045573f5709d449013f681
BLAKE2b-256 checksum
How to use checksums
be95d90d77fdb0a601192662db084a2469eac896a7d9f7b2707ec4c2eaf7d26d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

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