diff --git a/hexa/plugins/connector_postgresql/admin.py b/hexa/plugins/connector_postgresql/admin.py index a214e67c7..8770cc452 100644 --- a/hexa/plugins/connector_postgresql/admin.py +++ b/hexa/plugins/connector_postgresql/admin.py @@ -1,7 +1,12 @@ from django.contrib import admin -from .models import PostgresqlDatabase +from .models import PostgresqlDatabase, PostgresqlDatabasePermission @admin.register(PostgresqlDatabase) class PostgresqlDatabaseAdmin(admin.ModelAdmin): list_display = ("database", "hostname", "port", "username") + + +@admin.register(PostgresqlDatabasePermission) +class PostgresqlDatabasePermissionAdmin(admin.ModelAdmin): + list_display = ("database", "team")