Skip to content
This repository was archived by the owner on Nov 9, 2018. It is now read-only.

removed EncryptedCharField dependency #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions ios_notifications/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import datetime
dt_now = datetime.datetime.now

from django_fields.fields import EncryptedCharField
import OpenSSL

try:
Expand Down Expand Up @@ -85,9 +84,6 @@ class APNService(BaseService):
"""
certificate = models.TextField()
private_key = models.TextField()
passphrase = EncryptedCharField(
null=True, blank=True, help_text='Passphrase for the private key',
block_type='MODE_CBC')

PORT = 2195
fmt = '!cH32sH%ds'
Expand All @@ -97,7 +93,7 @@ def _connect(self):
Establishes an encrypted SSL socket connection to the service.
After connecting the socket can be written to or read from.
"""
return super(APNService, self)._connect(self.certificate, self.private_key, self.passphrase)
return super(APNService, self)._connect(self.certificate, self.private_key)

def push_notification_to_devices(self, notification, devices=None, chunk_size=100):
"""
Expand Down