Skip to content

Instantly share code, notes, and snippets.

@groovecoder
Created August 9, 2012 16:34
Show Gist options
  • Save groovecoder/3305668 to your computer and use it in GitHub Desktop.
Save groovecoder/3305668 to your computer and use it in GitHub Desktop.
def save(self, **kwargs):
"""Save the submission, updating slug and screenshot thumbnails"""
self.slug = self._make_unique_slug(**kwargs)
super(Submission,self).save(**kwargs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment