{"action":"created","issue":{"url":"https://api.github.com/repos/maraujop/django-crispy-forms/issues/587","repository_url":"https://api.github.com/repos/maraujop/django-crispy-forms","labels_url":"https://api.github.com/repos/maraujop/django-crispy-forms/issues/587/labels{/name}","comments_url":"https://api.github.com/repos/maraujop/django-crispy-forms/issues/587/comments","events_url":"https://api.github.com/repos/maraujop/django-crispy-forms/issues/587/events","html_url":"https://github.com/maraujop/django-crispy-forms/issues/587","id":153861783,"number":587,"title":"broken compatibility with django 1.4.22 in release 1.6.0 ","user":{"login":"Numerico","id":1114687,"avatar_url":"https://avatars.githubusercontent.com/u/1114687?v=3","gravatar_id":"","url":"https://api.github.com/users/Numerico","html_url":"https://github.com/Numerico","followers_url":"https://api.github.com/users/Numerico/followers","following_url":"https://api.github.com/users/Numerico/following{/other_user}","gists_url":"https://api.github.com/users/Numerico/gists{/gist_id}","starred_url":"https://api.github.com/users/Numerico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Numerico/subscriptions","organizations_url":"https://api.github.com/users/Numerico/orgs","repos_url":"https://api.github.com/users/Numerico/repos","events_url":"https://api.github.com/users/Numerico/events{/privacy}","received_events_url":"https://api.github.com/users/Numerico/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-09T20:26:04Z","updated_at":"2016-05-09T20:49:21Z","closed_at":null,"body":"Django-crispy-forms **1.6.0** makes use of _RequestContext_'s **flatten** method, for instance [here](https://github.com/maraujop/django-crispy-forms/blob/1.6.0/crispy_forms/layout.py#L332).\r\nBut that method was only introduced in django>**1.7** (specifically in [this commit](https://github.com/django/django/commit/8274fa60f88607eb0e81908f049c391455956dd8)).\r\nThis causes an _AttributeError_ exception **'RequestContext' object has no attribute 'flatten'**\r\nIn my case when using the {% crispy form %} tag to enable FormHelper in an app using django 1.4.22.\r\nI understand you're still supporting django>1.2, isn't it? In that case this would be a bug.\r\n\r\nMay be it could use some version check similar to [this](https://github.com/maraujop/django-crispy-forms/blob/c2c93cf9992622bbbf7bdbbcd9c0f1062506921f/crispy_forms/templatetags/crispy_forms_field.py#L186)?\r\nI'm willing to help with code if necessary. \r\nThank you"},"comment":{"url":"https://api.github.com/repos/maraujop/django-crispy-forms/issues/comments/217985207","html_url":"https://github.com/maraujop/django-crispy-forms/issues/587#issuecomment-217985207","issue_url":"https://api.github.com/repos/maraujop/django-crispy-forms/issues/587","id":217985207,"user":{"login":"Numerico","id":1114687,"avatar_url":"https://avatars.githubusercontent.com/u/1114687?v=3","gravatar_id":"","url":"https://api.github.com/users/Numerico","html_url":"https://github.com/Numerico","followers_url":"https://api.github.com/users/Numerico/followers","following_url":"https://api.github.com/users/Numerico/following{/other_user}","gists_url":"https://api.github.com/users/Numerico/gists{/gist_id}","starred_url":"https://api.github.com/users/Numerico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Numerico/subscriptions","organizations_url":"https://api.github.com/users/Numerico/orgs","repos_url":"https://api.github.com/users/Numerico/repos","events_url":"https://api.github.com/users/Numerico/events{/privacy}","received_events_url":"https://api.github.com/users/Numerico/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T20:49:21Z","updated_at":"2016-05-09T20:49:21Z","body":"Ok, thank you Kevin.\nSo, what version should I use for an app using django 1.4?\n(It's not an option to upgrade the full app yet...)\n\nOn 09/05/16 14:41, Kevin Brown wrote:\n>> I understand you're still supporting django>1.2, isn't it?\n> Quoting from the README, this doesn't appear to be the case\n>\n>> django-crispy-forms supports Python 2.7/Python 3.2+ and Django 1.8+\n> ---\n> You are receiving this because you authored the thread.\n> Reply to this email directly or view it on GitHub:\n> https://github.com/maraujop/django-crispy-forms/issues/587#issuecomment-217983083\n\n"}}