Files
postgres-web/pgweb/profserv/admin.py
Jonathan S. Katz 98f79d39c2 Allow professional services to be searchable in the admin
Enables an admin to search over professional services, and additionally
filter the services by whether or not they are approved.
2014-04-30 08:13:37 -04:00

12 lines
326 B
Python

from django.contrib import admin
from util.admin import PgwebAdmin
from models import ProfessionalService
class ProfessionalServiceAdmin(PgwebAdmin):
list_display = ('__unicode__', 'approved',)
list_filter = ('approved',)
search_fields = ('org__name',)
admin.site.register(ProfessionalService, ProfessionalServiceAdmin)