stash
This commit is contained in:
parent
33d368b5f4
commit
9320765bc5
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 rest_framework import serializers
|
||||||
|
|
||||||
from notifications.templates import TEMPLATE_VARS
|
from notifications.templates import TEMPLATE_VARS
|
||||||
|
from authentication.serializers import UserSerializer
|
||||||
|
|
||||||
|
|
||||||
class MessageTemplateSerializer(serializers.ModelSerializer):
|
class MessageTemplateSerializer(serializers.ModelSerializer):
|
||||||
|
@ -18,6 +19,8 @@ class MessageTemplateSerializer(serializers.ModelSerializer):
|
||||||
|
|
||||||
|
|
||||||
class UserNotificationChannelSerializer(serializers.ModelSerializer):
|
class UserNotificationChannelSerializer(serializers.ModelSerializer):
|
||||||
|
user = UserSerializer()
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = UserNotificationChannel
|
model = UserNotificationChannel
|
||||||
fields = '__all__'
|
fields = '__all__'
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<ul>
|
<ul>
|
||||||
<li v-for="channel in userNotificationChannels" :key="channel.id">
|
<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>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in a new issue