2015-05-07 14:09:37 +00:00
|
|
|
from django.apps import AppConfig
|
2023-11-17 12:25:13 +00:00
|
|
|
from django.utils.translation import gettext_lazy as _
|
2015-05-07 14:09:37 +00:00
|
|
|
|
|
|
|
from orchestra.core import services
|
|
|
|
|
|
|
|
|
|
|
|
class DatabasesConfig(AppConfig):
|
|
|
|
name = 'orchestra.contrib.databases'
|
|
|
|
verbose_name = 'Databases'
|
|
|
|
|
|
|
|
def ready(self):
|
|
|
|
from .models import Database, DatabaseUser
|
|
|
|
services.register(Database, icon='database.png')
|
|
|
|
services.register(DatabaseUser, icon='postgresql.png', verbose_name_plural=_("Database users"))
|