Skip to main content

Get edit and delete links in your django admin. A utility class to let your model admins inherit from.

Project description

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


Also see this project: [django-admin-enhancer](


  1. pip install django-relatedadminwidget

  2. Add “relatedwidget” to settings.INSTALLED_APPS

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

  4. In your applications’, 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, MyModelAdmin)

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]( did most of the work, I just updated it for Django 1.4 and packed it as an app.

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django-relatedadminwidget-0.0.3.tar.gz (5.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page