aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/hackinghowto.rst5
-rw-r--r--mediagoblin/db/models.py4
2 files changed, 7 insertions, 2 deletions
diff --git a/docs/hackinghowto.rst b/docs/hackinghowto.rst
index 08b228f1..914a5135 100644
--- a/docs/hackinghowto.rst
+++ b/docs/hackinghowto.rst
@@ -57,6 +57,11 @@ requirements::
sudo apt-get install mongodb git-core python python-dev \
python-lxml
+On Fedora::
+
+ yum install mongodb-server python-paste-deploy python-paste-script \
+ git-core python python-devel
+
.. YouCanHelp::
If you have instructions for other GNU/Linux distributions to set
diff --git a/mediagoblin/db/models.py b/mediagoblin/db/models.py
index 3bd1f61f..37839a00 100644
--- a/mediagoblin/db/models.py
+++ b/mediagoblin/db/models.py
@@ -155,7 +155,7 @@ class MediaEntry(Document):
if cursor.count():
return urlgen('mediagoblin.user_pages.media_home',
user=self.uploader()['username'],
- media=unicode(cursor[0]['_id']))
+ media=unicode(cursor[0]['slug']))
def url_to_next(self, urlgen):
"""
@@ -169,7 +169,7 @@ class MediaEntry(Document):
if cursor.count():
return urlgen('mediagoblin.user_pages.media_home',
user=self.uploader()['username'],
- media=unicode(cursor[0]['_id']))
+ media=unicode(cursor[0]['slug']))
def uploader(self):
return self.db.User.find_one({'_id': self['uploader']})