add option to select default view for list in dialog and use if user has no list settings, fixes #2636
This commit is contained in:
parent
24f81cdeae
commit
9efd77724d
3 changed files with 83 additions and 48 deletions
|
|
@ -196,7 +196,7 @@ class List(models.Model):
|
|||
|
||||
def json(self, keys=None, user=None):
|
||||
if not keys:
|
||||
keys=['id', 'name', 'user', 'type', 'query', 'status', 'subscribed', 'posterFrames', 'description']
|
||||
keys=['id', 'name', 'user', 'type', 'query', 'status', 'subscribed', 'posterFrames', 'description', 'view']
|
||||
response = {}
|
||||
for key in keys:
|
||||
if key == 'items':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue