Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add url key (which points to HTML representation) for models that sup…

…port it.
  • Loading branch information...
commit 2af5d804bb7c974e9abeb3ad74e93310e2e07bf9 1 parent 28ce74b
@vreon vreon authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 discogs_client/models.py
View
7 discogs_client/models.py
@@ -430,6 +430,7 @@ class Artist(PrimaryAPIObject):
profile = SimpleField()
data_quality = SimpleField()
name_variations = SimpleField(key='namevariations')
+ url = SimpleField('uri')
urls = SimpleField()
aliases = ListField('Artist')
members = ListField('Artist')
@@ -458,6 +459,7 @@ class Release(PrimaryAPIObject):
country = SimpleField()
notes = SimpleField()
formats = SimpleField()
+ url = SimpleField('uri')
videos = ListField('Video')
tracklist = ListField('Track')
artists = ListField('Artist')
@@ -488,6 +490,7 @@ class Master(PrimaryAPIObject):
styles = SimpleField()
genres = SimpleField()
images = SimpleField()
+ url = SimpleField('uri')
videos = ListField('Video')
tracklist = ListField('Track')
main_release = ObjectField('Release', as_id=True)
@@ -509,6 +512,7 @@ class Label(PrimaryAPIObject):
images = SimpleField()
contact_info = SimpleField()
data_quality = SimpleField()
+ url = SimpleField('uri')
sublabels = ListField('Label')
parent_label = ObjectField('Label', optional=True)
releases = ObjectCollection('Release')
@@ -530,6 +534,7 @@ class User(PrimaryAPIObject):
num_lists = SimpleField()
rank = SimpleField()
rating_avg = SimpleField()
+ url = SimpleField('uri')
name = SimpleField(writable=True)
profile = SimpleField(writable=True)
location = SimpleField(writable=True)
@@ -611,6 +616,7 @@ class Listing(PrimaryAPIObject):
ships_from = SimpleField()
comments = SimpleField()
audio = SimpleField()
+ url = SimpleField('uri')
price = ObjectField('Price')
release = ObjectField('Release')
seller = ObjectField('User')
@@ -629,6 +635,7 @@ class Order(PrimaryAPIObject):
next_status = SimpleField()
shipping_address = SimpleField()
additional_instructions = SimpleField()
+ url = SimpleField('uri')
status = SimpleField(writable=True)
fee = ObjectField('Price')
buyer = ObjectField('User')
Please sign in to comment.
Something went wrong with that request. Please try again.