Skip to content

Commit

Permalink
Merge pull request #152 from xtrinch/revert-149-make_fcmdevice_overri…
Browse files Browse the repository at this point in the history
…dable

Revert "Can't properly override FCMDevice"
  • Loading branch information
xtrinch authored Apr 12, 2021
2 parents 50311f6 + 50e3a4a commit cab776d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fcm_django/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def send_data_message(
return result

def _deactivate_device_on_error_result(self, result):
device = self.objects.filter(registration_id=self.registration_id)
device = FCMDevice.objects.filter(registration_id=self.registration_id)
if 'error' in result['results'][0]:
error_list = ['MissingRegistration', 'MismatchSenderId', 'InvalidRegistration', 'NotRegistered']
if result['results'][0]['error'] in error_list:
Expand Down

0 comments on commit cab776d

Please sign in to comment.