Fix jira auth data creation

remotes/origin/live-notifications
Jesús Espino 2017-03-23 17:41:14 +01:00
parent e3b390087a
commit 500fe01b6e
1 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,8 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import uuid
from django.utils.translation import ugettext as _ from django.utils.translation import ugettext as _
from django.conf import settings from django.conf import settings
@ -193,7 +195,7 @@ class JiraImporterViewSet(viewsets.ViewSet):
user=request.user, user=request.user,
key="jira-oauth", key="jira-oauth",
defaults={ defaults={
"value": "", "value": uuid.uuid4().hex,
"extra": {}, "extra": {},
} }
) )