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

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

Installation:

  1. Put relatedwidget folder in your project folder.

  2. Add “relatedwidget” to settings.INSTALLED_APPS

  3. In your other application’s admin.py, let the model admins inherit from RelatedWidgetWrapperBase like in this example:

    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!

Project details


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