Skip to main content

more widgets for the django admin

Project description


more widgets for the django admin

Quick start
If you need the SelectAndLink widget
In, add 'admin_xtra_widgets' to the INSTALLED_APPS
In add ``(r'^admin-xtra-widgets/', include('admin_extra_widgets.urls'))`` to your urlpatterns

This widget adds a clickable text value to the usual raw_id widget. It indicates the current values of the field

In your admin

from admin_xtra_widgets.widgets import VerboseManyToManyRawIdWidget

class YourAdmin(admin.ModelAdmin):
#raw_id_fields = ["your_m2m_field"]

def formfield_for_dbfield(self, db_field, **kwargs):
if in ('your_m2m_field', 'other_m2m_field'):
kwargs['widget'] = VerboseManyToManyRawIdWidget(db_field.rel, self.admin_site)
return super(YourAdmin,self).formfield_for_dbfield(db_field,**kwargs)
return db_field.formfield(**kwargs)


django-favman is licensed under the GNU-LGPL

Project details

Download files

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

Files for django-admin-xtra-widgets, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size django-admin-xtra-widgets-0.1.1.tar.gz (4.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page