Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ArtWork(models.Model):
- image = models.ForeignKey(
- 'wagtailimages.Image',
- on_delete=models.CASCADE,
- related_name='+'
- )
- ...
- ...
- ...
- {% image artwork.image height-100 %}
- <img alt="SomeName" src="/media/images/SomeName_155x200.max-1200x1200_22b3pND.height-100.jpg" width="77" height="100">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement