Commit eefb570e authored by Daniel W Bond's avatar Daniel W Bond

added slug as additional field... it's essentially the id

parent 33916139
......@@ -36,7 +36,8 @@ class ListingSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Listing
fields = ('url', 'title', 'author', 'isbn', 'year', 'edition', 'condition',
fields = ('url', 'slug',
'title', 'author', 'isbn', 'year', 'edition', 'condition',
'access_code', 'course_abbr', 'description', 'price', 'photo',
'num_bids', 'num_flags', 'active', 'old',
'exchanged', 'cancelled', 'date_closed', 'final_price')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment