def prepare_value(self, value):
		# converts bigint from db to hex before it is displayed in admin
		if value and not isinstance(value, six.string_types) \
			and connection.vendor in ("mysql", "sqlite"):
			value = _unsigned_integer_to_hex_string(value)
		return super(forms.CharField, self).prepare_value(value)
dataset/ETHPy150Open jleclanche/django-push-notifications/push_notifications/fields.py/HexadecimalField.prepare_value/original