diff --git a/pandora/item/managers.py b/pandora/item/managers.py index 187878a..b8d36bb 100644 --- a/pandora/item/managers.py +++ b/pandora/item/managers.py @@ -83,7 +83,7 @@ def parseCondition(condition): return q elif key_type == 'list': q = Q(itemId=False) - l = v.split(".") + l = v.split("/") if len(l) == 2: lqs = list(List.objects.filter(name=l[1], user__username=l[0])) if len(lqs) == 1: diff --git a/pandora/itemlist/models.py b/pandora/itemlist/models.py index 75edd85..d51a8d8 100644 --- a/pandora/itemlist/models.py +++ b/pandora/itemlist/models.py @@ -64,7 +64,7 @@ class List(models.Model): return self.get_id() def get_id(self): - return u'%s.%s' % (self.user.username, self.name) + return u'%s/%s' % (self.user.username, self.name) def editable(self, user): #FIXME: make permissions work diff --git a/pandora/itemlist/views.py b/pandora/itemlist/views.py index 6c629da..3cf9aa5 100644 --- a/pandora/itemlist/views.py +++ b/pandora/itemlist/views.py @@ -13,7 +13,7 @@ from item import utils from item.models import Item def get_list_or_404_json(id): - username, listname = id.split('.') + username, listname = id.split('/') return get_object_or_404_json(models.List, user__username=username, name=listname) def _order_query(qs, sort):