Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benjaoming/django-relatedadminwidget
AS OF DJANGO 1.9 THIS PROJECT IS UNNECESSARY! Widget for displaying edit and delete links alongside foreign key admin widgets
https://github.com/benjaoming/django-relatedadminwidget
Last synced: about 1 month ago
JSON representation
AS OF DJANGO 1.9 THIS PROJECT IS UNNECESSARY! Widget for displaying edit and delete links alongside foreign key admin widgets
- Host: GitHub
- URL: https://github.com/benjaoming/django-relatedadminwidget
- Owner: benjaoming
- Created: 2012-06-14T22:02:25.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2020-06-10T17:57:56.000Z (over 4 years ago)
- Last Synced: 2024-09-14T17:21:36.549Z (3 months ago)
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 40
- Watchers: 7
- Forks: 9
- Open Issues: 3
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
- starred-awesome - django-relatedadminwidget - AS OF DJANGO 1.9 THIS PROJECT IS UNNECESSARY! Widget for displaying edit and delete links alongside foreign key admin widgets (Python)
README
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 RelatedWidgetWrapperBaseclass 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.