tune find query to match new url controler
list names use : as seperator now
This commit is contained in:
parent
ee4bfa0366
commit
a6a285367b
4 changed files with 12 additions and 14 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue