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
9d2cd971
Commit
9d2cd971
authored
Dec 06, 2017
by
Brian Guadalupe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove rating choices
parent
e45f1ff1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
14 deletions
+6
-14
models.py
playlist/models.py
+6
-14
No files found.
playlist/models.py
View file @
9d2cd971
...
...
@@ -11,20 +11,12 @@ class MusicPlaylist(models.Model):
return
self
.
playlist_name
class
MusicEntry
(
models
.
Model
):
RATING_CHOICES
=
(
(
0
,
'1'
),
(
1
,
'2'
),
(
2
,
'3'
),
(
3
,
'4'
),
(
4
,
'5'
),
(
5
,
'6'
),
(
6
,
'7'
),
(
7
,
'8'
),
(
8
,
'9'
),
(
9
,
'10'
)
)
id
=
models
.
AutoField
(
primary_key
=
True
)
order_in_playlist
=
models
.
PositiveSmallIntegerField
()
rating
=
models
.
DecimalField
(
max_digits
=
1
,
decimal_places
=
0
,
choices
=
RATING_CHOICES
)
rating
=
models
.
DecimalField
(
max_digits
=
1
,
decimal_places
=
0
)
playlist
=
models
.
ForeignKey
(
MusicPlaylist
)
song
=
models
.
ForeignKey
(
Song
)
\ No newline at end of file
song
=
models
.
ForeignKey
(
Song
)
class
Follows
(
models
.
Model
):
user
=
models
.
ForeignKey
(
User
)
playlist
=
models
.
ForeignKey
(
MusicPlaylist
)
\ No newline at end of file
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