Skip to content

Commit

Permalink
Fixes an index error that is thrown in the django admin.
Browse files Browse the repository at this point in the history
On Django 1.9 if the gcm device id is null, an error is thrown
on the to_python method of the HexIntegerField class.
  • Loading branch information
jamaalscarlett committed Dec 13, 2015
1 parent 9c59e71 commit 64f9889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion push_notifications/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def to_python(self, value):
if isinstance(value, six.string_types):
return value
if value is None:
return ""
return value
return _unsigned_integer_to_hex_string(value)

def formfield(self, **kwargs):
Expand Down

0 comments on commit 64f9889

Please sign in to comment.