stash
This commit is contained in:
parent
c5e59a3b2b
commit
3e03832867
2 changed files with 4 additions and 1 deletions
|
@ -9,6 +9,7 @@ from notifications.models import MessageTemplate, UserNotificationChannel
|
|||
from rest_framework import serializers
|
||||
|
||||
from notifications.templates import TEMPLATE_VARS
|
||||
from authentication.serializers import UserSerializer
|
||||
|
||||
|
||||
class MessageTemplateSerializer(serializers.ModelSerializer):
|
||||
|
@ -18,6 +19,8 @@ class MessageTemplateSerializer(serializers.ModelSerializer):
|
|||
|
||||
|
||||
class UserNotificationChannelSerializer(serializers.ModelSerializer):
|
||||
user = UserSerializer()
|
||||
|
||||
class Meta:
|
||||
model = UserNotificationChannel
|
||||
fields = '__all__'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<ul>
|
||||
<li v-for="channel in userNotificationChannels" :key="channel.id">
|
||||
{{ channel.name }}
|
||||
{{ channel.id }} - {{ channel.channel_type }} - {{ channel.channel_target }} - {{ channel.event_filter }} - {{ channel.active }} - {{ channel.created }} - {{ channel.user }}
|
||||
</li>
|
||||
</ul>
|
||||
</template>
|
||||
|
|
Loading…
Reference in a new issue