

def save(self, *args, **kwargs):
    'prepend pk to job slug to keep things unique'
    if (not self.pk):
        super(Job, self).save(*args, **kwargs)
    slug_prefix = ('%s-' % self.pk)
    if self.slug.startswith(slug_prefix):
        self.slug = self.slug.replace(slug_prefix, '')
    if (self.slug == ''):
        self.slug = slugify(self.name)[:40]
    self.slug = ('%s%s' % (slug_prefix, self.slug))
    clear_caches_for_job(self)
    super(Job, slug_prefix).save(*args, **kwargs)

dataset/ETHPy150Open mozilla/source/source/jobs/models.py Job.save/VarMisuse@135/175 `self`->`slug_prefix`