Get edit and delete links in your django admin. A utility class to let your model admins inherit from.
Widget for displaying edit and delete links alongside foreign key admin widgets
Also see this project: [django-admin-enhancer](https://github.com/charettes/django-admin-enhancer)
pip install django-relatedadminwidget
Add “relatedwidget” to settings.INSTALLED_APPS
You may want to run your project’s ./manage.py collectstatic
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):
It also works with TabularInline and StackedInline! Remember the order of inheritence, always put RelatedWidgetWrapperBase first!
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.
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.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size django_relatedadminwidget-0.1-py3-none-any.whl (5.2 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
Hashes for django_relatedadminwidget-0.1-py3-none-any.whl