Commit 4ca4eeed authored by Daniel W Bond's avatar Daniel W Bond
Browse files

fixed location of default picture

parent 1acbce40
......@@ -61,7 +61,7 @@ class Listing(TimeStampedModel):
price = models.PositiveIntegerField(default=0,
validators=[MaxValueValidator(1000)])
photo = models.ImageField(max_length=1000, upload_to='listing_photos',
default='static/img/default_listing_photo.jpg')
default='listing_photos/default_listing_photo.jpg')
# these remaining fields are for internal usage, not for users
sold = models.BooleanField(default=False)
......
......@@ -157,7 +157,7 @@ SRCT Bookshare • {{ listing.title }}
<div class="col-md-3 col-sm-6 col-xs-12">
<div class="text-center">
<a href="{{ listing.photo.url }}">
<img src="{{ listing.photo.url }}"
<img src="{{ listing.photo.url }}"
alt="User submitted textbook photo" class="img-thumbnail" />
</a>
</div>
......
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