4025c28eae
Moved contacts to new model
13 lines
381 B
Python
13 lines
381 B
Python
from django.contrib import admin
|
|
|
|
from common.admin import MyImportExportModelAdmin
|
|
from locations.models import Suburb, Location
|
|
|
|
|
|
@admin.register(Suburb)
|
|
class SuburbsAdmin(MyImportExportModelAdmin, admin.ModelAdmin):
|
|
list_filter = ["state"]
|
|
|
|
@admin.register(Location)
|
|
class LocationAdmin(admin.ModelAdmin):
|
|
search_fields = ["address", "suburb__name", "suburb__postcode"] |