1. Luke Plant
  2. django-autocomplete

Source

django-autocomplete / ac_example / admin.py

1
2
3
4
5
6
7
8
9
from django.contrib import admin
from django.contrib.auth.models import Message
from ac_example import forms

class MessageAdmin(admin.ModelAdmin):
    form = forms.MessageForm
    fields = ('user', 'message')

admin.site.register(Message, MessageAdmin)