{"action":"closed","issue":{"url":"https://api.github.com/repos/soynatan/django-easy-audit/issues/50","repository_url":"https://api.github.com/repos/soynatan/django-easy-audit","labels_url":"https://api.github.com/repos/soynatan/django-easy-audit/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/soynatan/django-easy-audit/issues/50/comments","events_url":"https://api.github.com/repos/soynatan/django-easy-audit/issues/50/events","html_url":"https://github.com/soynatan/django-easy-audit/issues/50","id":300907006,"number":50,"title":"Data too long for column 'query_string'","user":{"login":"dapicester","id":3007132,"avatar_url":"https://avatars1.githubusercontent.com/u/3007132?v=4","gravatar_id":"","url":"https://api.github.com/users/dapicester","html_url":"https://github.com/dapicester","followers_url":"https://api.github.com/users/dapicester/followers","following_url":"https://api.github.com/users/dapicester/following{/other_user}","gists_url":"https://api.github.com/users/dapicester/gists{/gist_id}","starred_url":"https://api.github.com/users/dapicester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dapicester/subscriptions","organizations_url":"https://api.github.com/users/dapicester/orgs","repos_url":"https://api.github.com/users/dapicester/repos","events_url":"https://api.github.com/users/dapicester/events{/privacy}","received_events_url":"https://api.github.com/users/dapicester/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-28T06:27:13Z","updated_at":"2018-03-14T22:34:31Z","closed_at":"2018-03-14T22:34:31Z","author_association":"NONE","body":"Hi, I am using Django 1.10.7 with MySQL 5.7 and one of my test failed with the following error:\r\n```\r\nDataError: (1406, \"Data too long for column 'query_string' at row 1\")\r\n```\r\nThe test is sending a GET request to one of my API endpoint with a fairly large query string.\r\nSo I checked the [RequestEvent](https://github.com/soynatan/django-easy-audit/blob/master/easyaudit/models.py#L72) model and indeed the `query_string` attribute has a `max_length=255`.\r\n\r\nAfter a quick search I found out on [this StackOverflow question](https://stackoverflow.com/questions/812925/what-is-the-maximum-possible-length-of-a-query-string) that the actual maximum length of the query string may be bigger. I wonder if it is appropriate to either use a larger `max_length` (e.g. 4000) or use a `TextField` for storing the query string."}}
{"actor":{"display_login":"soynatan"}}