Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.

Commit

Permalink
handle long job names when making slugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanpitts committed Mar 26, 2014
1 parent 3384a09 commit 2ae12b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/jobs/models.py
Expand Up @@ -107,7 +107,7 @@ def save(self, *args, **kwargs):
self.slug = self.slug.replace(slug_prefix, '')

if self.slug == '':
self.slug = slugify(self.name)
self.slug = slugify(self.name)[:40]

# prefix with pk
self.slug = '%s%s' % (slug_prefix, self.slug)
Expand Down

0 comments on commit 2ae12b2

Please sign in to comment.