merge changes
This commit is contained in:
commit
1eca5218c8
3 changed files with 177 additions and 64 deletions
|
|
@ -36,6 +36,13 @@ def parseCondition(condition, user):
|
|||
exclude = True
|
||||
else:
|
||||
exclude = False
|
||||
if k == 'id':
|
||||
v = v.split('/')
|
||||
if len(v) == 2:
|
||||
q = Q(user__username=v[0], name=v[1])
|
||||
else:
|
||||
q = Q(id__in=[])
|
||||
return q
|
||||
if k == 'subscribed':
|
||||
key = 'subscribed_users__username'
|
||||
v = user.username
|
||||
|
|
|
|||
|
|
@ -39,13 +39,14 @@
|
|||
{"id": "info", "title": "Info"},
|
||||
{"id": "statistics", "title": "Statistics"},
|
||||
{"id": "clips", "title": "Clips"},
|
||||
{"id": "player", "title": "Player"},
|
||||
{"id": "timeline", "title": "Timeline"},
|
||||
{"id": "map", "title": "Map"},
|
||||
{"id": "calendar", "title": "Calendar"},
|
||||
{"id": "files", "title": "Files", "admin": true}
|
||||
],
|
||||
"layers": [
|
||||
{"id": "privatenotes", "title": "Private Notes", "type": "text"},
|
||||
{"id": "privatenotes", "title": "Private Notes", "type": "text", "private": true},
|
||||
{"id": "publicnotes", "title": "Public Notes", "type": "text"}
|
||||
],
|
||||
"listViews": [
|
||||
|
|
@ -171,6 +172,7 @@
|
|||
"section": "items",
|
||||
"sections": ["my", "public", "featured"],
|
||||
"showAnnotations": true,
|
||||
"showControls": true,
|
||||
"showGroups": true,
|
||||
"showInfo": true,
|
||||
"showMovies": true,
|
||||
|
|
@ -182,7 +184,8 @@
|
|||
"showSidebar": true,
|
||||
"sidebarSize": 256,
|
||||
"sitePage": "home",
|
||||
"theme": "modern"
|
||||
"theme": "modern",
|
||||
"videoSize": "fit"
|
||||
},
|
||||
"username": ""
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue