Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
ianaragoza_music
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ian Rafael T. Aragoza
ianaragoza_music
Commits
839a1d41
Commit
839a1d41
authored
Feb 13, 2023
by
exclamationpoints
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed models for about and contact apps
parent
44be25ba
Pipeline
#2693
canceled with stages
Changes
9
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
61 additions
and
68 deletions
+61
-68
models.cpython-311.pyc
ianaragoza_music/about/__pycache__/models.cpython-311.pyc
+0
-0
0004_remove_song_album_remove_song_artist_delete_album_and_more.py
...ve_song_album_remove_song_artist_delete_album_and_more.py
+30
-0
0004_remove_song_album_remove_song_artist_delete_album_and_more.cpython-311.pyc
..._remove_song_artist_delete_album_and_more.cpython-311.pyc
+0
-0
models.py
ianaragoza_music/about/models.py
+0
-33
models.cpython-311.pyc
ianaragoza_music/contact/__pycache__/models.cpython-311.pyc
+0
-0
0004_remove_song_album_remove_song_artist_delete_album_and_more.py
...ve_song_album_remove_song_artist_delete_album_and_more.py
+30
-0
0004_remove_song_album_remove_song_artist_delete_album_and_more.cpython-311.pyc
..._remove_song_artist_delete_album_and_more.cpython-311.pyc
+0
-0
models.py
ianaragoza_music/contact/models.py
+1
-35
db.sqlite3
ianaragoza_music/db.sqlite3
+0
-0
No files found.
ianaragoza_music/about/__pycache__/models.cpython-311.pyc
View file @
839a1d41
No preview for this file type
ianaragoza_music/about/migrations/0004_remove_song_album_remove_song_artist_delete_album_and_more.py
0 → 100644
View file @
839a1d41
# Generated by Django 4.1.6 on 2023-02-13 14:37
from
django.db
import
migrations
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'about'
,
'0003_alter_artist_monthly_listeners'
),
]
operations
=
[
migrations
.
RemoveField
(
model_name
=
'song'
,
name
=
'album'
,
),
migrations
.
RemoveField
(
model_name
=
'song'
,
name
=
'artist'
,
),
migrations
.
DeleteModel
(
name
=
'Album'
,
),
migrations
.
DeleteModel
(
name
=
'Artist'
,
),
migrations
.
DeleteModel
(
name
=
'Song'
,
),
]
ianaragoza_music/about/migrations/__pycache__/0004_remove_song_album_remove_song_artist_delete_album_and_more.cpython-311.pyc
0 → 100644
View file @
839a1d41
File added
ianaragoza_music/about/models.py
View file @
839a1d41
...
@@ -5,36 +5,3 @@ from django.db import models
...
@@ -5,36 +5,3 @@ from django.db import models
from
django.db
import
models
from
django.db
import
models
from
django.urls
import
reverse
from
django.urls
import
reverse
class
Artist
(
models
.
Model
):
artist_name
=
models
.
CharField
(
max_length
=
100
,
unique
=
True
)
monthly_listeners
=
models
.
IntegerField
()
def
__str__
(
self
):
return
'{}'
.
format
(
self
.
artist_name
,
self
.
monthly_listeners
)
def
get_absolute_url
(
self
):
return
reverse
(
'artist_detail'
,
args
=
[
str
(
self
.
artist_name
)])
class
Album
(
models
.
Model
):
album_name
=
models
.
CharField
(
max_length
=
100
)
artist
=
models
.
ForeignKey
(
Artist
,
on_delete
=
models
.
CASCADE
,
related_name
=
'albums'
)
description
=
models
.
CharField
(
max_length
=
255
)
release_date
=
models
.
DateField
()
def
__str__
(
self
):
return
'{} by {}'
.
format
(
self
.
album_name
,
self
.
artist
)
def
get_absolute_url
(
self
):
return
reverse
(
'album_detail'
,
args
=
[
str
(
self
.
album_name
)])
class
Song
(
models
.
Model
):
song_title
=
models
.
CharField
(
max_length
=
100
)
artist
=
models
.
ForeignKey
(
Artist
,
on_delete
=
models
.
CASCADE
,
related_name
=
'songs'
)
album
=
models
.
ForeignKey
(
Album
,
on_delete
=
models
.
CASCADE
,
related_name
=
'songs'
)
song_length
=
models
.
DurationField
()
def
__str__
(
self
):
return
'{} - {}'
.
format
(
self
.
artist
,
self
.
song_title
)
def
get_absolute_url
(
self
):
return
reverse
(
'song_detail'
,
args
=
[
str
(
self
.
song_title
)])
ianaragoza_music/contact/__pycache__/models.cpython-311.pyc
View file @
839a1d41
No preview for this file type
ianaragoza_music/contact/migrations/0004_remove_song_album_remove_song_artist_delete_album_and_more.py
0 → 100644
View file @
839a1d41
# Generated by Django 4.1.6 on 2023-02-13 14:37
from
django.db
import
migrations
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'contact'
,
'0003_alter_artist_monthly_listeners'
),
]
operations
=
[
migrations
.
RemoveField
(
model_name
=
'song'
,
name
=
'album'
,
),
migrations
.
RemoveField
(
model_name
=
'song'
,
name
=
'artist'
,
),
migrations
.
DeleteModel
(
name
=
'Album'
,
),
migrations
.
DeleteModel
(
name
=
'Artist'
,
),
migrations
.
DeleteModel
(
name
=
'Song'
,
),
]
ianaragoza_music/contact/migrations/__pycache__/0004_remove_song_album_remove_song_artist_delete_album_and_more.cpython-311.pyc
0 → 100644
View file @
839a1d41
File added
ianaragoza_music/contact/models.py
View file @
839a1d41
...
@@ -4,37 +4,3 @@ from django.db import models
...
@@ -4,37 +4,3 @@ from django.db import models
from
django.db
import
models
from
django.db
import
models
from
django.urls
import
reverse
from
django.urls
import
reverse
class
Artist
(
models
.
Model
):
artist_name
=
models
.
CharField
(
max_length
=
100
,
unique
=
True
)
monthly_listeners
=
models
.
IntegerField
()
def
__str__
(
self
):
return
'{}'
.
format
(
self
.
artist_name
,
self
.
monthly_listeners
)
def
get_absolute_url
(
self
):
return
reverse
(
'artist_detail'
,
args
=
[
str
(
self
.
artist_name
)])
class
Album
(
models
.
Model
):
album_name
=
models
.
CharField
(
max_length
=
100
)
artist
=
models
.
ForeignKey
(
Artist
,
on_delete
=
models
.
CASCADE
,
related_name
=
'albums'
)
description
=
models
.
CharField
(
max_length
=
255
)
release_date
=
models
.
DateField
()
def
__str__
(
self
):
return
'{} by {}'
.
format
(
self
.
album_name
,
self
.
artist
)
def
get_absolute_url
(
self
):
return
reverse
(
'album_detail'
,
args
=
[
str
(
self
.
album_name
)])
class
Song
(
models
.
Model
):
song_title
=
models
.
CharField
(
max_length
=
100
)
artist
=
models
.
ForeignKey
(
Artist
,
on_delete
=
models
.
CASCADE
,
related_name
=
'songs'
)
album
=
models
.
ForeignKey
(
Album
,
on_delete
=
models
.
CASCADE
,
related_name
=
'songs'
)
song_length
=
models
.
DurationField
()
def
__str__
(
self
):
return
'{} - {}'
.
format
(
self
.
artist
,
self
.
song_title
)
def
get_absolute_url
(
self
):
return
reverse
(
'song_detail'
,
args
=
[
str
(
self
.
song_title
)])
ianaragoza_music/db.sqlite3
View file @
839a1d41
No preview for this file type
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