资 源 简 介
AutoComplete for ForeignKey and ManyToManyField
uses same syntax as the search for django-admin
up:
the latest version in Downloads
- fixed compatibility with Django 1.3
- cleaned java scripts
- added support for inline AutocompleteStackedInline, AutocompleteTabularInline
- added a field WildModelSearchInput, it can be used in the admin forms
requirements
copy to the appropriate folder
1. mediaadminjsjquery.autocomplete.js
1. mediajquery.autocomplete.css
example
use a fairly simple
models.py
in m2m field need to specify related\_name
```
class Celebrity(models.Model):
name = models.CharField()
class Film(models.Model):
type = models.ForeignKey( Type )
director=