Use media.url_for_self instead of calling urlgen directly
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Tue, 20 Dec 2011 17:47:33 +0000 (18:47 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Tue, 27 Dec 2011 19:41:31 +0000 (20:41 +0100)
commit0eb649ff7ac3f1eb71eb1d2cb66019a860b2c5c7
treeda1b3c8f4201da8d3389f07a67d20efa9c9b3172
parent479e8a833ba502c976574af77181f60a2a660aec
Use media.url_for_self instead of calling urlgen directly

Replace
urlgen('ID', user=media.get_uploader().username, media=media.*)
by
media.url_for_self(urlgen)
in a few places.
It's just a lot nicer!
mediagoblin/db/mongo/models.py
mediagoblin/templates/mediagoblin/user_pages/media.html