Let some code support "media without slug"
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Sun, 22 Jan 2012 16:11:43 +0000 (17:11 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Sat, 28 Jan 2012 12:53:55 +0000 (13:53 +0100)
commit3e907d5516d50fc4a75e7ccb4e687db924ec9ff6
tree6f4c3b880006ed0e5a391086b09587dcd31912f5
parent3c43cfc9f91b487d52ff7868f821fe920f676d90
Let some code support "media without slug"

The upcoming SQL database will allow having media without a
slug again. This might especially be useful for API
support, where the uploaded image (media) does not have
*any* information to generate a slug from.

This code change mostly allows the sql backend to have no
slug in its model and improves some parts to properly
handle that.

It specifically does not have any web frontend support to
edit/create MediaEntries with no slug.
mediagoblin/db/mixin.py
mediagoblin/db/sql/models.py
mediagoblin/templates/mediagoblin/user_pages/media.html