{"action":"closed","issue":{"url":"https://api.github.com/repos/jazzband/django-constance/issues/154","repository_url":"https://api.github.com/repos/jazzband/django-constance","labels_url":"https://api.github.com/repos/jazzband/django-constance/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/jazzband/django-constance/issues/154/comments","events_url":"https://api.github.com/repos/jazzband/django-constance/issues/154/events","html_url":"https://github.com/jazzband/django-constance/issues/154","id":171009742,"number":154,"title":"ConstanceForm in Non-admin view","user":{"login":"cereblanco","id":743526,"avatar_url":"https://avatars.githubusercontent.com/u/743526?v=3","gravatar_id":"","url":"https://api.github.com/users/cereblanco","html_url":"https://github.com/cereblanco","followers_url":"https://api.github.com/users/cereblanco/followers","following_url":"https://api.github.com/users/cereblanco/following{/other_user}","gists_url":"https://api.github.com/users/cereblanco/gists{/gist_id}","starred_url":"https://api.github.com/users/cereblanco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cereblanco/subscriptions","organizations_url":"https://api.github.com/users/cereblanco/orgs","repos_url":"https://api.github.com/users/cereblanco/repos","events_url":"https://api.github.com/users/cereblanco/events{/privacy}","received_events_url":"https://api.github.com/users/cereblanco/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-13T13:52:15Z","updated_at":"2016-09-01T23:34:47Z","closed_at":"2016-09-01T23:34:47Z","body":"Is there a way to display a CustomConfirmForm in a non-admin view?\r\n\r\n```\r\nclass CustomConfigForm(ConstanceForm):\r\n    \r\n    def __init__(self, *args, **kwargs):\r\n        super(CustomConfigForm, self).__init__(*args, **kwargs)\r\n        self.helper = FormHelper(self)\r\n        self.helper.layout.append(Submit('save', 'Save'))\r\n        .\r\n        .\r\n        .\r\n\r\n```\r\n\r\n```\r\ndef config_update(request, pk, template_name='configs/form.html'):\r\n    form = CustomConfigForm(request.POST or None)\r\n    if form.is_valid():\r\n        config = form.save(commit=False)\r\n        config.save()\r\n    \r\n    return render(request, template_name, {'form': form})\r\n```"}}
{"actor":{"display_login":"camilonova"}}