summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElias Showk <eshowk@entrouvert.com>2018-08-23 14:31:33 (GMT)
committerElias Showk <eshowk@entrouvert.com>2018-08-27 08:16:23 (GMT)
commit7e288677ace9876de032fed7e14b350630401131 (patch)
tree6a9b3e6ffba999f21134512201aa6fe25c0fba97
parent9e950ee28b99034b123cbaefa99e3cad9f6c161b (diff)
downloadcombo-wip/pwapush.zip
combo-wip/pwapush.tar.gz
combo-wip/pwapush.tar.bz2
pwa: activate django admin model UI (#25462)wip/pwapush
-rw-r--r--combo/apps/notifications/admin.py4
-rw-r--r--combo/apps/pwa/admin.py22
2 files changed, 26 insertions, 0 deletions
diff --git a/combo/apps/notifications/admin.py b/combo/apps/notifications/admin.py
new file mode 100644
index 0000000..73fecae
--- /dev/null
+++ b/combo/apps/notifications/admin.py
@@ -0,0 +1,4 @@
+from django.contrib import admin
+from combo.apps.notifications.models import Notification
+
+admin.site.register(Notification) \ No newline at end of file
diff --git a/combo/apps/pwa/admin.py b/combo/apps/pwa/admin.py
new file mode 100644
index 0000000..7a98105
--- /dev/null
+++ b/combo/apps/pwa/admin.py
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+# combo - Combo PWA App
+# Copyright (C) 2018 Entr'ouvert
+#
+# This program is free software: you can redistribute it and/or modify it
+# under the terms of the GNU Affero General Public License as published
+# by the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+from django.contrib import admin
+
+
+from .models import WebPushRecord
+admin.site.register(WebPushRecord)