changeset 169:e24d244c0c84

Made the JSON id for personas be the same as their primary key id.
author Atul Varma <varmaa@toolness.com>
date Fri, 11 Apr 2008 11:05:27 -0700
parents 994ae3fd828a
children 9d73e950f0f4
files personasbackend/personas/models.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/personasbackend/personas/models.py	Fri Apr 04 18:04:27 2008 -0700
+++ b/personasbackend/personas/models.py	Fri Apr 11 11:05:27 2008 -0700
@@ -607,8 +607,10 @@
         return ( user.has_perm( "personas.can_publish" ) or
                  self.owner == user )
 
+    # TODO: We should be able to get rid of this eventually, since the
+    # JSON id is the same as the normal id.
     def _get_json_id( self ):
-        return "persona-%d" % self.id
+        return str( self.id )
 
     json_id = property( _get_json_id )