Skip to content
Browse files

update revision number and fix a bug in json.py

  • Loading branch information...
1 parent d565d4e commit aa4da45adec8c285a04042d9d209501ee801b760 @juacompe juacompe committed Aug 2, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 setup.py
  2. +1 −1 slumber/json.py
View
2 setup.py
@@ -7,7 +7,7 @@ def read(fname):
setup(
name = "django_slumber",
- version = "0.3.1",
+ version = "0.3.2",
author = "Kirit Saelensminde",
author_email = "kirit@felspar.com",
description = ("RESTful data connector for Django"),
View
2 slumber/json.py
@@ -24,7 +24,7 @@ def to_json_data(model, instance, fieldname, fieldmeta):
rel_to = MODEL_CACHE[type(value)]
root = reverse('slumber.server.views.get_applications')
return dict(display=unicode(value),
- data='/slumber/' + rel_to.path + 'data/%s/' % value.pk)
+ data = root + rel_to.path + 'data/%s/' % value.pk)
elif DATA_MAPPING.has_key(fieldmeta['type']):
return DATA_MAPPING[fieldmeta['type']](
model, instance, fieldmeta, value)

0 comments on commit aa4da45

Please sign in to comment.
Something went wrong with that request. Please try again.