{"action":"opened","issue":{"url":"https://api.github.com/repos/potatolondon/djangae/issues/1030","repository_url":"https://api.github.com/repos/potatolondon/djangae","labels_url":"https://api.github.com/repos/potatolondon/djangae/issues/1030/labels{/name}","comments_url":"https://api.github.com/repos/potatolondon/djangae/issues/1030/comments","events_url":"https://api.github.com/repos/potatolondon/djangae/issues/1030/events","html_url":"https://github.com/potatolondon/djangae/issues/1030","id":296853637,"number":1030,"title":"Use of deprecated resources in forms/fields.py","user":{"login":"kaustubhkurve","id":12981413,"avatar_url":"https://avatars0.githubusercontent.com/u/12981413?v=4","gravatar_id":"","url":"https://api.github.com/users/kaustubhkurve","html_url":"https://github.com/kaustubhkurve","followers_url":"https://api.github.com/users/kaustubhkurve/followers","following_url":"https://api.github.com/users/kaustubhkurve/following{/other_user}","gists_url":"https://api.github.com/users/kaustubhkurve/gists{/gist_id}","starred_url":"https://api.github.com/users/kaustubhkurve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaustubhkurve/subscriptions","organizations_url":"https://api.github.com/users/kaustubhkurve/orgs","repos_url":"https://api.github.com/users/kaustubhkurve/repos","events_url":"https://api.github.com/users/kaustubhkurve/events{/privacy}","received_events_url":"https://api.github.com/users/kaustubhkurve/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-13T19:16:09Z","updated_at":"2018-02-13T19:16:09Z","closed_at":null,"author_association":"NONE","body":"Hi!\r\n\r\nThere are a few instances of usage of deprecated django methods/attributes in forms/fields.py, which causes the creation of model instances from the admin site to fail if that model has a GenericRelationField defined.\r\nThese are the deprecated methods/attributes I could find.\r\n1) models.get_apps in [L210](https://github.com/potatolondon/djangae/blob/master/djangae/forms/fields.py#L210). Removed in Django>=1.9 in favour of apps.get_app_configs(Please see [L390](https://github.com/django/django/blob/stable/1.8.x/django/apps/registry.py#L390))\r\n2) models.get_models in [L211](https://github.com/potatolondon/djangae/blob/master/djangae/forms/fields.py#L211) and [L224](https://github.com/potatolondon/djangae/blob/master/djangae/forms/fields.py#L224). Replaced by apps.get_models in Django>=1.9.\r\n3) m._meta.module_name(Options.module_name) in [L187](https://github.com/potatolondon/djangae/blob/master/djangae/forms/fields.py#L187). Replaced by m._meta.model_name(Options.model_name).\r\n\r\nSteps to reproduce\r\n1) Define a model with a GenericRelationField.\r\n2) Creating a new instance of the model from the admin site fails.\r\n\r\n* Djangae version: master@6e23d264\r\n* Django version: 1.10\r\n* App Engine SDK version: 1.9.64\r\n* Using Cloud SDK: yes\r\n"}}
{"actor":{"display_login":"kaustubhkurve"}}