{"action":"created","issue":{"url":"https://api.github.com/repos/nijel/weblate/issues/830","labels_url":"https://api.github.com/repos/nijel/weblate/issues/830/labels{/name}","comments_url":"https://api.github.com/repos/nijel/weblate/issues/830/comments","events_url":"https://api.github.com/repos/nijel/weblate/issues/830/events","html_url":"https://github.com/nijel/weblate/issues/830","id":104264112,"number":830,"title":"Exception on saving monolingual XLIFF translation","user":{"login":"rvanlaak","id":2707563,"avatar_url":"https://avatars.githubusercontent.com/u/2707563?v=3","gravatar_id":"","url":"https://api.github.com/users/rvanlaak","html_url":"https://github.com/rvanlaak","followers_url":"https://api.github.com/users/rvanlaak/followers","following_url":"https://api.github.com/users/rvanlaak/following{/other_user}","gists_url":"https://api.github.com/users/rvanlaak/gists{/gist_id}","starred_url":"https://api.github.com/users/rvanlaak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvanlaak/subscriptions","organizations_url":"https://api.github.com/users/rvanlaak/orgs","repos_url":"https://api.github.com/users/rvanlaak/repos","events_url":"https://api.github.com/users/rvanlaak/events{/privacy}","received_events_url":"https://api.github.com/users/rvanlaak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nijel/weblate/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"nijel","id":212189,"avatar_url":"https://avatars.githubusercontent.com/u/212189?v=3","gravatar_id":"","url":"https://api.github.com/users/nijel","html_url":"https://github.com/nijel","followers_url":"https://api.github.com/users/nijel/followers","following_url":"https://api.github.com/users/nijel/following{/other_user}","gists_url":"https://api.github.com/users/nijel/gists{/gist_id}","starred_url":"https://api.github.com/users/nijel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nijel/subscriptions","organizations_url":"https://api.github.com/users/nijel/orgs","repos_url":"https://api.github.com/users/nijel/repos","events_url":"https://api.github.com/users/nijel/events{/privacy}","received_events_url":"https://api.github.com/users/nijel/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/nijel/weblate/milestones/17","html_url":"https://github.com/nijel/weblate/milestones/2.5","labels_url":"https://api.github.com/repos/nijel/weblate/milestones/17/labels","id":1308186,"number":17,"title":"2.5","description":"","creator":{"login":"nijel","id":212189,"avatar_url":"https://avatars.githubusercontent.com/u/212189?v=3","gravatar_id":"","url":"https://api.github.com/users/nijel","html_url":"https://github.com/nijel","followers_url":"https://api.github.com/users/nijel/followers","following_url":"https://api.github.com/users/nijel/following{/other_user}","gists_url":"https://api.github.com/users/nijel/gists{/gist_id}","starred_url":"https://api.github.com/users/nijel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nijel/subscriptions","organizations_url":"https://api.github.com/users/nijel/orgs","repos_url":"https://api.github.com/users/nijel/repos","events_url":"https://api.github.com/users/nijel/events{/privacy}","received_events_url":"https://api.github.com/users/nijel/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":33,"state":"open","created_at":"2015-09-16T10:13:03Z","updated_at":"2015-11-23T12:33:02Z","due_on":null,"closed_at":null},"comments":15,"created_at":"2015-09-01T13:17:59Z","updated_at":"2015-11-23T12:52:45Z","closed_at":"2015-11-23T12:24:28Z","body":"An exception occured when a translation was saved:\r\n\r\n```\r\nException at /translate/demo/adminbackend/en/\r\nCould not find template unit for new unit!\r\nRequest Method:\tPOST\r\nRequest URL:\thttps://demo.nl/weblate/translate/demo/adminbackend/en/?sid=89dbd564-50ab-11e5-8351-001e8c1fb675&offset=0\r\nDjango Version:\t1.8.4\r\nException Type:\tException\r\nException Value:\t\r\nCould not find template unit for new unit!\r\nException Location:\t/var/www/weblate/weblate/trans/formats.py in _find_unit_template, line 497\r\nPython Executable:\t/usr/bin/python\r\nPython Version:\t2.7.3\r\nPython Path:\t\r\n['/var/www/weblate',\r\n '/usr/local/lib/python2.7/dist-packages/Weblate-2.4-py2.7.egg',\r\n '/usr/lib/python2.7/dist-packages',\r\n '/usr/lib/python2.7',\r\n '/usr/lib/python2.7/plat-linux2',\r\n '/usr/lib/python2.7/lib-tk',\r\n '/usr/lib/python2.7/lib-old',\r\n '/usr/lib/python2.7/lib-dynload',\r\n '/usr/local/lib/python2.7/dist-packages',\r\n '/usr/lib/pymodules/python2.7']\r\nServer time:\tTue, 1 Sep 2015 13:15:41 +0000\r\n```\r\n\r\n```\r\nEnvironment:\r\n\r\n\r\nRequest Method: POST\r\nRequest URL: https://demo.nl/weblate/translate/demo/adminbackend/en/?sid=266016bc-50ab-11e5-a66a-001e8c1fb675&offset=0\r\n\r\nDjango Version: 1.8.4\r\nPython Version: 2.7.3\r\nInstalled Applications:\r\n('django.contrib.auth',\r\n 'django.contrib.contenttypes',\r\n 'django.contrib.sessions',\r\n 'django.contrib.sites',\r\n 'django.contrib.messages',\r\n 'django.contrib.staticfiles',\r\n 'django.contrib.admin',\r\n 'django.contrib.admindocs',\r\n 'django.contrib.sitemaps',\r\n 'social.apps.django_app.default',\r\n 'crispy_forms',\r\n 'compressor',\r\n 'weblate.trans',\r\n 'weblate.lang',\r\n 'weblate.accounts',\r\n 'weblate')\r\nInstalled Middleware:\r\n('django.contrib.sessions.middleware.SessionMiddleware',\r\n 'django.middleware.common.CommonMiddleware',\r\n 'django.middleware.locale.LocaleMiddleware',\r\n 'django.middleware.csrf.CsrfViewMiddleware',\r\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\r\n 'django.contrib.messages.middleware.MessageMiddleware',\r\n 'django.middleware.clickjacking.XFrameOptionsMiddleware',\r\n 'social.apps.django_app.middleware.SocialAuthExceptionMiddleware',\r\n 'weblate.accounts.middleware.RequireLoginMiddleware')\r\n\r\n\r\nTraceback:\r\nFile \"/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py\" in get_response\r\n  132.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\nFile \"/var/www/weblate/weblate/trans/views/edit.py\" in translate\r\n  524.                 this_unit_url, next_unit_url\r\nFile \"/var/www/weblate/weblate/trans/views/edit.py\" in handle_translate\r\n  309.         go_next = perform_translation(unit, form, request)\r\nFile \"/var/www/weblate/weblate/trans/views/edit.py\" in perform_translation\r\n  236.         form.cleaned_data['fuzzy']\r\nFile \"/var/www/weblate/weblate/trans/models/unit.py\" in translate\r\n  998.         saved = self.save_backend(request)\r\nFile \"/var/www/weblate/weblate/trans/models/unit.py\" in save_backend\r\n  540.             (saved, pounit) = self.translation.update_unit(self, request, user)\r\nFile \"/var/www/weblate/weblate/trans/models/translation.py\" in update_unit\r\n  847.             pounit, add = self.store.find_unit(unit.context, src)\r\nFile \"/var/www/weblate/weblate/trans/formats.py\" in find_unit\r\n  540.             return self._find_unit_template(context)\r\nFile \"/var/www/weblate/weblate/trans/formats.py\" in _find_unit_template\r\n  497.                     'Could not find template unit for new unit!'\r\n\r\nException Type: Exception at /translate/demo/adminbackend/en/\r\nException Value: Could not find template unit for new unit!\r\n```"},"comment":{"url":"https://api.github.com/repos/nijel/weblate/issues/comments/158925835","html_url":"https://github.com/nijel/weblate/issues/830#issuecomment-158925835","issue_url":"https://api.github.com/repos/nijel/weblate/issues/830","id":158925835,"user":{"login":"rvanlaak","id":2707563,"avatar_url":"https://avatars.githubusercontent.com/u/2707563?v=3","gravatar_id":"","url":"https://api.github.com/users/rvanlaak","html_url":"https://github.com/rvanlaak","followers_url":"https://api.github.com/users/rvanlaak/followers","following_url":"https://api.github.com/users/rvanlaak/following{/other_user}","gists_url":"https://api.github.com/users/rvanlaak/gists{/gist_id}","starred_url":"https://api.github.com/users/rvanlaak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvanlaak/subscriptions","organizations_url":"https://api.github.com/users/rvanlaak/orgs","repos_url":"https://api.github.com/users/rvanlaak/repos","events_url":"https://api.github.com/users/rvanlaak/events{/privacy}","received_events_url":"https://api.github.com/users/rvanlaak/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T12:52:45Z","updated_at":"2015-11-23T12:52:45Z","body":"Will test this later today and let you know :+1: "}}