Supplying migrations for a bold new era of mediagoblin entry slugs
authorChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 25 Feb 2013 22:16:21 +0000 (16:16 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 25 Feb 2013 22:16:21 +0000 (16:16 -0600)
commite66431f4c39e58cccfd356e0300a246f1494b15e
tree6b863b395586f0fdfef69b84c7dd6251f49dc874
parent86f0ff75e3538b45b23c251d3a7c31496fe8f39a
Supplying migrations for a bold new era of mediagoblin entry slugs

Okay, that's a totally confusing statement, but the docstring of this
migration summarizes it well:

  Entries without slugs now display differently in the url like:
    /u/cwebber/m/id=251/

  ... because of this, we should back-convert:
   - entries without slugs should be converted to use the id, if possible, to
     make old urls still work
   - slugs with = (or also : which is now also not allowed) to have those
     stripped out (small possibility of breakage here sadly)

This commit sponsored by John Sullivan.  Thanks johnsu01! :)
mediagoblin/db/migrations.py