Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mymusiclist
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Brian Guadalupe
mymusiclist
Commits
f4d630dd
Commit
f4d630dd
authored
Nov 29, 2017
by
Gink
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix new playlist handling
parent
6243c637
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
views.py
playlist/views.py
+2
-2
No files found.
playlist/views.py
View file @
f4d630dd
...
...
@@ -28,8 +28,8 @@ def addSong(request):
playlist
=
MusicPlaylist
.
objects
.
filter
(
user
=
request
.
user
,
playlist_name
=
plname
)
if
(
len
(
playlist
)
==
0
):
playlist
[
0
]
=
MusicPlaylist
(
playlist_name
=
"New"
,
is_public
=
True
,
user
=
request
.
user
)
playlist
.
save
()
playlist
=
[
MusicPlaylist
(
playlist_name
=
"New"
,
is_public
=
True
,
user
=
request
.
user
)]
playlist
[
0
]
.
save
()
#MusicEntry Zone
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment