From a8390070c1671b528ac0c0eacce4b2a39badfe19 Mon Sep 17 00:00:00 2001 From: Luke Sneeringer Date: Tue, 9 Dec 2014 13:29:49 -0600 Subject: [PATCH] Explicitly typecast self.pk. --- awx/main/models/projects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/models/projects.py b/awx/main/models/projects.py index 25f398d444..4930494a3d 100644 --- a/awx/main/models/projects.py +++ b/awx/main/models/projects.py @@ -238,7 +238,7 @@ class Project(UnifiedJobTemplate, ProjectOptions): # Create auto-generated local path if project uses SCM. if self.pk and self.scm_type and not self.local_path.startswith('_'): slug_name = slugify(unicode(self.name)).replace(u'-', u'_') - self.local_path = u'_%d__%s' % (self.pk, slug_name) + self.local_path = u'_%d__%s' % (int(self.pk), slug_name) if 'local_path' not in update_fields: update_fields.append('local_path') # Do the actual save.