mozilla/kuma — pull request #204 by ubernostrum (2012-05-09 15:41:38+00:00)
Title: Bug 745902

This fixes the too-long URL by truncating the slug when it's generated in Submission.save(), rather than throwing a too-long slug at the DB and letting it truncate there (possibly resulting in us using a Python-level slug that doesn't match what ended up in the DB). Also makes the max_length on the slug's field explicit; 50 is the Django default if not specified for a SlugField, but it's nice to see it in the code so that we don't make incorrect assumptions about what can go in there.