mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-10 00:42:06 +00:00

Enables an admin to search over professional services, and additionally filter the services by whether or not they are approved.
12 lines
326 B
Python
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)
|