diff --git a/docs/changelog.rst b/docs/changelog.rst index 77f3668..f9dd798 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,6 +2,8 @@ Changelog ========= * :feature:`-` add mysqltasks and pgsqltasks +* :feature:`-` add :py:mod:`userdbs` app to allow management of user databases + via :py:mod:`mysqltasks` and :py:mod:`pgsqltasks` * :feature:`-` add new app :py:mod:`taskresults` that takes care of handling asynchronous `Celery`_ results * :feature:`-` add new task :py:func:`osusers.tasks.delete_ldap_group` (needs diff --git a/docs/code.rst b/docs/code.rst index 22f2a53..e61db41 100644 --- a/docs/code.rst +++ b/docs/code.rst @@ -199,3 +199,21 @@ provides some functionality that is common to all gnuviechadmin subprojects. ------------------------------------- .. automodule:: taskresults.models + + +:py:mod:`userdbs` app +===================== + +.. automodule:: userdbs + + +:py:mod:`admin ` +------------------------------- + +.. automodule:: userdbs.admin + + +:py:mod:`models ` +--------------------------------- + +.. automodule:: userdbs.models diff --git a/gnuviechadmin/userdbs/admin.py b/gnuviechadmin/userdbs/admin.py index 8c38f3f..368b3f1 100644 --- a/gnuviechadmin/userdbs/admin.py +++ b/gnuviechadmin/userdbs/admin.py @@ -1,3 +1,16 @@ +""" +Admin functionality for the :py:mod:`userdbs.models` models. + +""" +from __future__ import absolute_import + from django.contrib import admin -# Register your models here. +from .models import ( + DatabaseUser, + UserDatabase, +) + + +admin.site.register(DatabaseUser) +admin.site.register(UserDatabase) \ No newline at end of file