diff --git a/push_notifications/api/rest_framework.py b/push_notifications/api/rest_framework.py index 69ba8202..afdeaf3f 100644 --- a/push_notifications/api/rest_framework.py +++ b/push_notifications/api/rest_framework.py @@ -37,6 +37,7 @@ class DeviceSerializerMixin(ModelSerializer): class Meta: fields = ("name", "registration_id", "device_id", "active", "date_created") read_only_fields = ("date_created", ) + extra_kwargs = {"active": {"default": True}} class APNSDeviceSerializer(ModelSerializer):