Created
August 28, 2012 13:26
-
-
Save ikks/3497949 to your computer and use it in GitHub Desktop.
Extending a form for use django-autocomplete-light
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.contrib import admin | |
import autocomplete_light | |
from models import Address | |
class AddressAdmin(admin.ModelAdmin): | |
form = autocomplete_light.modelform_factory(Address) | |
admin.site.register(Address, AddressAdmin) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment