summaryrefslogtreecommitdiff
path: root/dichroism/src/dtos/product_get.rs
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2020-11-16 19:55:48 -0500
committerAdam T. Carpenter <atc@53hor.net>2020-11-16 19:55:48 -0500
commitfe5403014267b81142581f54c38e4576a391ea6f (patch)
treee5ad97d3cc08f41ac7b7ba9eb42362528cd7da7f /dichroism/src/dtos/product_get.rs
parent9c5b036bd537f1465e3ecacbc98a192f98a84e7f (diff)
downloadtheglassyladies-fe5403014267b81142581f54c38e4576a391ea6f.tar.xz
theglassyladies-fe5403014267b81142581f54c38e4576a391ea6f.zip
Thumbnails and shortened descriptions.
Diffstat (limited to 'dichroism/src/dtos/product_get.rs')
-rw-r--r--dichroism/src/dtos/product_get.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/dichroism/src/dtos/product_get.rs b/dichroism/src/dtos/product_get.rs
index 3f68eef..aa52f19 100644
--- a/dichroism/src/dtos/product_get.rs
+++ b/dichroism/src/dtos/product_get.rs
@@ -24,9 +24,9 @@ impl From<Product> for ProductGet {
quantity: p.quantity,
featured: p.featured,
category: p.category,
- photo_fullsize: p.photo_set.fullsize.filename(),
- photo_base: p.photo_set.base.filename(),
- photo_thumbnail: p.photo_set.thumbnail.filename(),
+ photo_fullsize: p.photo_set.fullsize.id,
+ photo_base: p.photo_set.base.id,
+ photo_thumbnail: p.photo_set.thumbnail.id,
}
}
}