I don't think it takes percentages. It is looking for an integer.

On Fri, Apr 7, 2017 at 12:22 PM, Leo G <leo.gonzal...@gmail.com> wrote:

> I did not get this error before when I set the image constraints to 100%
> width, not sure why I am getting it now, stack trace is below
>
>
>  File "/sites/techarena51.com/venv-3.5/lib/python3.5/site-
> packages/django/contrib/admin/options.py", line 1007, in save_model
>     obj.save()
>   File "/sites/techarena51.com/venv-3.5/lib/python3.5/site-
> packages/mezzanine/core/models.py", line 253, in save
>     super(Displayable, self).save(*args, **kwargs)
>   File "/sites/techarena51.com/venv-3.5/lib/python3.5/site-
> packages/mezzanine/core/models.py", line 86, in save
>     super(Slugged, self).save(*args, **kwargs)
>   File "/sites/techarena51.com/venv-3.5/lib/python3.5/site-
> packages/mezzanine/core/models.py", line 59, in save
>     super(SiteRelated, self).save(*args, **kwargs)
>   File "/sites/techarena51.com/venv-3.5/lib/python3.5/site-
> packages/mezzanine/core/models.py", line 142, in save
>     self.description = strip_tags(self.description_from_content())
>   File "/sites/techarena51.com/venv-3.5/lib/python3.5/site-
> packages/mezzanine/core/models.py", line 168, in description_from_content
>     description = richtext_filters(description)
>   File "/sites/techarena51.com/venv-3.5/lib/python3.5/site-
> packages/mezzanine/core/templatetags/mezzanine_tags.py", line 473, in
> richtext_filters
>     content = filter_func(content)
>   File "/sites/techarena51.com/venv-3.5/lib/python3.5/site-
> packages/mezzanine/utils/html.py", line 126, in thumbnails
>     img["src"] = settings.MEDIA_URL + thumbnail(src, width, height)
>   File "/sites/techarena51.com/venv-3.5/lib/python3.5/site-
> packages/mezzanine/core/templatetags/mezzanine_tags.py", line 376, in
> thumbnail
>     to_width = int(width)
> ValueError: invalid literal for int() with base 10: '100%'
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to