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
67c5f265
Commit
67c5f265
authored
Dec 06, 2017
by
Brian Guadalupe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add E
parent
9d2cd971
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
models.py
tag/models.py
+6
-2
No files found.
tag/models.py
View file @
67c5f265
from
django.db
import
models
from
django.contrib.auth.models
import
User
from
playlist.models
import
*
class
Tag
(
models
.
Model
):
id
=
models
.
AutoField
(
primary_key
=
True
)
name
=
models
.
CharField
(
max_length
=
32
)
tag
=
models
.
ManyToManyField
(
MusicEntry
)
def
__str__
(
self
):
return
self
.
name
\ No newline at end of file
return
self
.
name
class
TagEntry
(
models
.
Model
):
tag
=
models
.
ForeignKey
(
Tag
)
music_entry
=
models
.
ForeignKey
(
MusicEntry
)
\ 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