{"action":"created","issue":{"url":"https://api.github.com/repos/django/django-localflavor/issues/201","repository_url":"https://api.github.com/repos/django/django-localflavor","labels_url":"https://api.github.com/repos/django/django-localflavor/issues/201/labels{/name}","comments_url":"https://api.github.com/repos/django/django-localflavor/issues/201/comments","events_url":"https://api.github.com/repos/django/django-localflavor/issues/201/events","html_url":"https://github.com/django/django-localflavor/pull/201","id":133782622,"number":201,"title":"Fixed max_length parameter being sent as regex","user":{"login":"fmartingr","id":812088,"avatar_url":"https://avatars.githubusercontent.com/u/812088?v=3","gravatar_id":"","url":"https://api.github.com/users/fmartingr","html_url":"https://github.com/fmartingr","followers_url":"https://api.github.com/users/fmartingr/followers","following_url":"https://api.github.com/users/fmartingr/following{/other_user}","gists_url":"https://api.github.com/users/fmartingr/gists{/gist_id}","starred_url":"https://api.github.com/users/fmartingr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmartingr/subscriptions","organizations_url":"https://api.github.com/users/fmartingr/orgs","repos_url":"https://api.github.com/users/fmartingr/repos","events_url":"https://api.github.com/users/fmartingr/events{/privacy}","received_events_url":"https://api.github.com/users/fmartingr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-15T18:12:28Z","updated_at":"2016-02-15T18:44:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/django/django-localflavor/pulls/201","html_url":"https://github.com/django/django-localflavor/pull/201","diff_url":"https://github.com/django/django-localflavor/pull/201.diff","patch_url":"https://github.com/django/django-localflavor/pull/201.patch"},"body":"In `localflavor.pe.forms.PERUCField` the `__init__` call had the wrong arguments. The first is a regular expression as in the other forms and the django API.\r\n\r\nUsing this form as it is raises an `AttributeError`: \r\n\r\n``` traceback\r\n  File \"/home/vagrant/.Envs/a/lib/python2.7/site-packages/localflavor/pe/forms.py\", line 70, in clean\r\n    value = super(PERUCField, self).clean(value)\r\n  File \"/home/vagrant/.Envs/a/lib/python2.7/site-packages/django/forms/fields.py\", line 152, in clean\r\n    self.run_validators(value)\r\n  File \"/home/vagrant/.Envs/a/lib/python2.7/site-packages/django/forms/fields.py\", line 135, in run_validators\r\n    v(value)\r\n  File \"/home/vagrant/.Envs/a/lib/python2.7/site-packages/django/core/validators.py\", line 49, in __call__\r\n    if not (self.inverse_match is not bool(self.regex.search(\r\nAttributeError: 'int' object has no attribute 'search'\r\n```"},"comment":{"url":"https://api.github.com/repos/django/django-localflavor/issues/comments/184343535","html_url":"https://github.com/django/django-localflavor/pull/201#issuecomment-184343535","issue_url":"https://api.github.com/repos/django/django-localflavor/issues/201","id":184343535,"user":{"login":"claudep","id":143192,"avatar_url":"https://avatars.githubusercontent.com/u/143192?v=3","gravatar_id":"","url":"https://api.github.com/users/claudep","html_url":"https://github.com/claudep","followers_url":"https://api.github.com/users/claudep/followers","following_url":"https://api.github.com/users/claudep/following{/other_user}","gists_url":"https://api.github.com/users/claudep/gists{/gist_id}","starred_url":"https://api.github.com/users/claudep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudep/subscriptions","organizations_url":"https://api.github.com/users/claudep/orgs","repos_url":"https://api.github.com/users/claudep/repos","events_url":"https://api.github.com/users/claudep/events{/privacy}","received_events_url":"https://api.github.com/users/claudep/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T18:44:21Z","updated_at":"2016-02-15T18:44:21Z","body":"I think the patch is now correct. Proper validation of this field could be the subject of a later patch. @benkonrath, may I let you merge?"}}