{"action":"opened","issue":{"url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/3353","labels_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/3353/labels{/name}","comments_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/3353/comments","events_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/3353/events","html_url":"https://github.com/tomchristie/django-rest-framework/issues/3353","id":104279748,"number":3353,"title":"Different data on internationalization","user":{"login":"jab3z","id":4821049,"avatar_url":"https://avatars.githubusercontent.com/u/4821049?v=3","gravatar_id":"","url":"https://api.github.com/users/jab3z","html_url":"https://github.com/jab3z","followers_url":"https://api.github.com/users/jab3z/followers","following_url":"https://api.github.com/users/jab3z/following{/other_user}","gists_url":"https://api.github.com/users/jab3z/gists{/gist_id}","starred_url":"https://api.github.com/users/jab3z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jab3z/subscriptions","organizations_url":"https://api.github.com/users/jab3z/orgs","repos_url":"https://api.github.com/users/jab3z/repos","events_url":"https://api.github.com/users/jab3z/events{/privacy}","received_events_url":"https://api.github.com/users/jab3z/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-01T14:32:22Z","updated_at":"2015-09-01T14:32:22Z","closed_at":null,"body":"Hi,\r\n\r\nThe endpoint called in the default language (English) works fine, but in arabic I get None.\r\n\r\nHere's the code\r\n\r\nserializers.py\r\n\r\n    def validate(self, validated_data):\r\n        support_request = validated_data.get('support_request')\r\n        amount = validated_data.get('amount')\r\n\r\n        if support_request.raised_in_full():\r\n            raise serializers.ValidationError(_('Targeted amount already received'))\r\n\r\n        if amount > support_request.remaining_amount:\r\n            raise serializers.ValidationError(\r\n                _('You cannot support with more than {} KWD'.format(support_request.remaining_amount)))\r\n        return validated_data\r\n\r\nmodels.py\r\n\r\n    class SupportRequest(TimeStampedModel):\r\n        @property\r\n        def amount(self):\r\n            try:\r\n                value = self.form_values.filter(field__label=self.amount_field.label).first().value\r\n                value = Decimal(value).quantize(THREEDIGITS)\r\n            except:\r\n                value = None\r\n            return value\r\n\r\n        @property\r\n        def remaining_amount(self):\r\n            if all([self.raised, self.amount]):\r\n                return self.amount - self.raised\r\n            return self.amount\r\n\r\n        def raised_in_full(self):\r\n            if self.amount == self.raised:\r\n                return True\r\n            return False\r\n\r\nThe endpoint works perfectly on english, but on arabic it fails.\r\nI've logged all variables and for english all of them has values, in Arabic doesn't.\r\n\r\nIt's tested with Postman and rest framework form interface.\r\n\r\nvalidated_data looks the same on both languages.\r\namount is ok\r\nsupport_request.amount None\r\nsupport_request.raised is ok\r\nsupport_request.remaining_amount is None\r\n\r\nI don't understand how internationalization can cause this.\r\n\r\n"}}