26 lines
573 B
Python
26 lines
573 B
Python
# -*- coding: utf-8 -*-
|
|
# vi:si:et:sw=4:sts=4:ts=4
|
|
|
|
from django.contrib import admin
|
|
|
|
import models
|
|
|
|
|
|
class BinAdmin(admin.ModelAdmin):
|
|
search_fields = ['name', 'title']
|
|
admin.site.register(models.Bin, BinAdmin)
|
|
|
|
class PropertyAdmin(admin.ModelAdmin):
|
|
search_fields = ['name', 'title']
|
|
admin.site.register(models.Property, PropertyAdmin)
|
|
|
|
|
|
class PlaceAdmin(admin.ModelAdmin):
|
|
search_fields = ['name']
|
|
admin.site.register(models.Place, PlaceAdmin)
|
|
|
|
|
|
class EventAdmin(admin.ModelAdmin):
|
|
search_fields = ['name']
|
|
admin.site.register(models.Event, EventAdmin)
|
|
|