Advertisement
Guest User

Untitled

a guest
Feb 26th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. class ArtWork(models.Model):
  2. image = models.ForeignKey(
  3. 'wagtailimages.Image',
  4. on_delete=models.CASCADE,
  5. related_name='+'
  6. )
  7. ...
  8. ...
  9. ...
  10.  
  11. {% image artwork.image height-100 %}
  12.  
  13. <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