Skip to content

Commit

Permalink
update revision number and fix a bug in json.py
Browse files Browse the repository at this point in the history
  • Loading branch information
juacompe committed Aug 2, 2011
1 parent d565d4e commit aa4da45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
2 changes: 1 addition & 1 deletion slumber/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit aa4da45

Please sign in to comment.