Santiago L
70042f3b5c
commit 0f26b5a8e0
Author: jorgepastorr <jorge.pastor.rr@gmail.com>
Date: Sun Jul 9 07:51:51 2023 +0000
Repo: https://gitea.pangea.org/pangea/django-orchestra.git
15 lines
472 B
Python
15 lines
472 B
Python
from django.apps import AppConfig
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
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"))
|