diff --git a/pandora/annotation/models.py b/pandora/annotation/models.py index 91ef7de..78b3043 100644 --- a/pandora/annotation/models.py +++ b/pandora/annotation/models.py @@ -117,3 +117,4 @@ class Annotation(models.Model): def __unicode__(self): return u"%s/%s-%s" %(self.item, self.start, self.end) + diff --git a/pandora/itemlist/models.py b/pandora/itemlist/models.py index d55c936..083a5d0 100644 --- a/pandora/itemlist/models.py +++ b/pandora/itemlist/models.py @@ -22,8 +22,8 @@ class List(models.Model): modified = models.DateTimeField(auto_now=True) user = models.ForeignKey(User, related_name='lists') name = models.CharField(max_length=255) - status = models.CharField(max_length=20, default='private') - _status = ['private', 'public', 'featured'] + status = models.CharField(max_length=20, default='personal') + _status = ['personal', 'public', 'featured'] query = DictField(default={"static": True}) type= models.CharField(max_length=255, default='static') description = models.TextField(default='') diff --git a/static/js/pandora/ui/list.js b/static/js/pandora/ui/list.js index ca8a159..248608e 100644 --- a/static/js/pandora/ui/list.js +++ b/static/js/pandora/ui/list.js @@ -193,10 +193,10 @@ pandora.ui.list = function(view) { // fixme: remove view argument }); }, 'delete': function(event, data) { - getListData().editable && pandora.api.removeListItems({ + pandora.getListData().editable && pandora.api.removeListItems({ list: app.user.ui.list, items: data.ids - }, reloadList); + }, pandora.reloadList); }, init: function(event, data) { app.$ui.total.html(pandora.ui.status('total', data)); @@ -317,10 +317,10 @@ pandora.ui.list = function(view) { // fixme: remove view argument }); }, paste: function(event, data) { - data.items && getListData().editable && pandora.api.addListItems({ + data.items && pandora.getListData().editable && pandora.api.addListItems({ list: app.user.ui.list, items: data.items - }, reloadList); + }, pandora.reloadList); }, select: function(event, data) { var $still, $timeline;