fix notification.py
This commit is contained in:
parent
0990b8e4dd
commit
4a9361e04f
|
|
@ -22,7 +22,7 @@ class SubscriberSerializer(serializers.ModelSerializer):
|
|||
return data
|
||||
|
||||
def create(self, validated_data):
|
||||
Subscriber.objects.create(**validated_data)
|
||||
Subscriber.objects.get_or_create(**validated_data)
|
||||
|
||||
def get_email(self, obj):
|
||||
return obj["email"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user