{"action":"closed","issue":{"url":"https://api.github.com/repos/nnseva/django-jsoneditor/issues/34","repository_url":"https://api.github.com/repos/nnseva/django-jsoneditor","labels_url":"https://api.github.com/repos/nnseva/django-jsoneditor/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/nnseva/django-jsoneditor/issues/34/comments","events_url":"https://api.github.com/repos/nnseva/django-jsoneditor/issues/34/events","html_url":"https://github.com/nnseva/django-jsoneditor/issues/34","id":298406948,"node_id":"MDU6SXNzdWUyOTg0MDY5NDg=","number":34,"title":"Displaying the variable name","user":{"login":"kerryz","id":4254060,"node_id":"MDQ6VXNlcjQyNTQwNjA=","avatar_url":"https://avatars0.githubusercontent.com/u/4254060?v=4","gravatar_id":"","url":"https://api.github.com/users/kerryz","html_url":"https://github.com/kerryz","followers_url":"https://api.github.com/users/kerryz/followers","following_url":"https://api.github.com/users/kerryz/following{/other_user}","gists_url":"https://api.github.com/users/kerryz/gists{/gist_id}","starred_url":"https://api.github.com/users/kerryz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kerryz/subscriptions","organizations_url":"https://api.github.com/users/kerryz/orgs","repos_url":"https://api.github.com/users/kerryz/repos","events_url":"https://api.github.com/users/kerryz/events{/privacy}","received_events_url":"https://api.github.com/users/kerryz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-19T21:34:39Z","updated_at":"2018-12-11T14:56:19Z","closed_at":"2018-12-11T14:56:19Z","author_association":"NONE","body":"Thanks for a great widget!  \r\nI'm wondering how I can see the variable name when using this widget.\r\n\r\nExample:\r\n\r\nIn models.py\r\n```\r\nfrom django.db import models\r\nfrom django.contrib.postgres.fields import JSONField\r\n\r\nclass AModel(models.Model):\r\n    a_field = JSONField()\r\n    b_field = JSOnField()\r\n```\r\n\r\nIn admin.py\r\n```\r\nfrom .models import AModel\r\nfrom django.contrib import admin\r\n\r\nclass AModelAdmin(admin.ModelAdmin):\r\n    formfield_overrides = {\r\n        JSONField: {'widget': JSONEditor}\r\n    }\r\n\r\nadmin.site.register(AModel, AModelAdmin)\r\n```\r\n\r\nThis will enable me to edit the fields `a_field` and `b_field` in Django admin pages, but since the variable names `a_field` and `b_field` aren't displayed in the admin pages, I don't know which widget is editing which variable."}}
{"actor":{"display_login":"nnseva"}}