Projet

Général

Profil

0006-pwa-activate-django-admin-model-UI-25462.patch

Anonyme, 24 août 2018 17:21

Télécharger (1,82 ko)

Voir les différences:

Subject: [PATCH 6/6] pwa: activate django admin model UI (#25462)

 combo/apps/notifications/admin.py |  4 ++++
 combo/apps/pwa/admin.py           | 22 ++++++++++++++++++++++
 2 files changed, 26 insertions(+)
 create mode 100644 combo/apps/notifications/admin.py
 create mode 100644 combo/apps/pwa/admin.py
combo/apps/notifications/admin.py
1
from django.contrib import admin
2
from combo.apps.notifications.models import Notification
3

  
4
admin.site.register(Notification)
combo/apps/pwa/admin.py
1
# -*- coding: utf-8 -*-
2
# combo - Combo PWA App
3
# Copyright (C) 2018  Entr'ouvert
4
#
5
# This program is free software: you can redistribute it and/or modify it
6
# under the terms of the GNU Affero General Public License as published
7
# by the Free Software Foundation, either version 3 of the License, or
8
# (at your option) any later version.
9
#
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
# GNU Affero General Public License for more details.
14
#
15
# You should have received a copy of the GNU Affero General Public License
16
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
17

  
18
from django.contrib import admin
19

  
20

  
21
from .models import WebPushRecord
22
admin.site.register(WebPushRecord)
0
-