{"action":"created","issue":{"url":"https://api.github.com/repos/sunscrapers/djoser/issues/50","labels_url":"https://api.github.com/repos/sunscrapers/djoser/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/sunscrapers/djoser/issues/50/comments","events_url":"https://api.github.com/repos/sunscrapers/djoser/issues/50/events","html_url":"https://github.com/sunscrapers/djoser/pull/50","id":83860703,"number":50,"title":"change constants dynamic","user":{"login":"ckdalsdhdp","id":2172517,"avatar_url":"https://avatars.githubusercontent.com/u/2172517?v=3","gravatar_id":"","url":"https://api.github.com/users/ckdalsdhdp","html_url":"https://github.com/ckdalsdhdp","followers_url":"https://api.github.com/users/ckdalsdhdp/followers","following_url":"https://api.github.com/users/ckdalsdhdp/following{/other_user}","gists_url":"https://api.github.com/users/ckdalsdhdp/gists{/gist_id}","starred_url":"https://api.github.com/users/ckdalsdhdp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckdalsdhdp/subscriptions","organizations_url":"https://api.github.com/users/ckdalsdhdp/orgs","repos_url":"https://api.github.com/users/ckdalsdhdp/repos","events_url":"https://api.github.com/users/ckdalsdhdp/events{/privacy}","received_events_url":"https://api.github.com/users/ckdalsdhdp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-02T06:02:09Z","updated_at":"2015-06-02T07:34:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sunscrapers/djoser/pulls/50","html_url":"https://github.com/sunscrapers/djoser/pull/50","diff_url":"https://github.com/sunscrapers/djoser/pull/50.diff","patch_url":"https://github.com/sunscrapers/djoser/pull/50.patch"},"body":"Hello\r\nI would like to use the custom constants if failed to user login\r\nbut serializer class used fixed constants in validationError\r\nso I changed constants to class variable\r\nplease give me feedback thanks :)\r\n\r\np.s.\r\nsorry I can't write english well"},"comment":{"url":"https://api.github.com/repos/sunscrapers/djoser/issues/comments/107840299","html_url":"https://github.com/sunscrapers/djoser/pull/50#issuecomment-107840299","issue_url":"https://api.github.com/repos/sunscrapers/djoser/issues/50","id":107840299,"user":{"login":"konradhalas","id":101077,"avatar_url":"https://avatars.githubusercontent.com/u/101077?v=3","gravatar_id":"","url":"https://api.github.com/users/konradhalas","html_url":"https://github.com/konradhalas","followers_url":"https://api.github.com/users/konradhalas/followers","following_url":"https://api.github.com/users/konradhalas/following{/other_user}","gists_url":"https://api.github.com/users/konradhalas/gists{/gist_id}","starred_url":"https://api.github.com/users/konradhalas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konradhalas/subscriptions","organizations_url":"https://api.github.com/users/konradhalas/orgs","repos_url":"https://api.github.com/users/konradhalas/repos","events_url":"https://api.github.com/users/konradhalas/events{/privacy}","received_events_url":"https://api.github.com/users/konradhalas/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T07:34:47Z","updated_at":"2015-06-02T07:34:47Z","body":"Hi @ckdalsdhdp, thank you for your PR.\r\n\r\nI like your idea, we should definitely provide easy way to override error messages in serializers. I only wonder is it the best solution. I'm trying to find how DRF handle such cases but I can't find anything in docs about it.\r\n\r\nNevertheless, we will merge your PR soon OR we will figure out sth similar (maybe we'll move those variables to settings?)"}}