mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-10 00:42:06 +00:00
24 lines
799 B
Python
24 lines
799 B
Python
from django.contrib import admin
|
|
|
|
from pgweb.core.models import Version, OrganisationType, Organisation
|
|
from pgweb.core.models import ImportedRSSFeed, ImportedRSSItem
|
|
from pgweb.core.models import ModerationNotification
|
|
|
|
class OrganisationAdmin(admin.ModelAdmin):
|
|
list_display = ('name', 'approved', 'lastconfirmed',)
|
|
list_filter = ('approved',)
|
|
ordering = ('name', )
|
|
filter_horizontal = ('managers', )
|
|
search_fields = ('name', )
|
|
|
|
class VersionAdmin(admin.ModelAdmin):
|
|
list_display = ('versionstring', 'reldate', 'supported', 'current', )
|
|
|
|
admin.site.register(Version, VersionAdmin)
|
|
admin.site.register(OrganisationType)
|
|
admin.site.register(Organisation, OrganisationAdmin)
|
|
admin.site.register(ImportedRSSFeed)
|
|
admin.site.register(ImportedRSSItem)
|
|
admin.site.register(ModerationNotification)
|
|
|