diff options
author | Jessica Tallon <jessica@megworld.co.uk> | 2014-07-21 18:32:47 +0100 |
---|---|---|
committer | Jessica Tallon <jessica@megworld.co.uk> | 2014-07-22 23:13:17 +0100 |
commit | a14d90c2db5ff96bdd72009a07f1afc0e8ef3595 (patch) | |
tree | 5f7e8a14f557f9917179fc8f2d4e9987ef98097a /mediagoblin/db/models.py | |
parent | 8ac7a653d93831ab5e297e31a94f1056bede05a4 (diff) | |
download | mediagoblin-a14d90c2db5ff96bdd72009a07f1afc0e8ef3595.tar.lz mediagoblin-a14d90c2db5ff96bdd72009a07f1afc0e8ef3595.tar.xz mediagoblin-a14d90c2db5ff96bdd72009a07f1afc0e8ef3595.zip |
Switch from slug to ID and clean up style to conform to PEP-8
Diffstat (limited to 'mediagoblin/db/models.py')
-rw-r--r-- | mediagoblin/db/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/db/models.py b/mediagoblin/db/models.py index 8ea16b80..aaceb599 100644 --- a/mediagoblin/db/models.py +++ b/mediagoblin/db/models.py @@ -466,7 +466,7 @@ class MediaEntry(Base, MediaEntryMixin): "href": request.urlgen( "mediagoblin.federation.object", objectType=self.objectType, - slug=self.slug, + id=self.id, qualified=True ), }, @@ -492,7 +492,7 @@ class MediaEntry(Base, MediaEntryMixin): "url": request.urlgen( "mediagoblin.federation.object.comments", objectType=self.objectType, - uuid=self.slug, + id=self.id, qualified=True ), } |