Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use breakpoints and grid_columns field settings over global settings #190

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tykling
Copy link

@tykling tykling commented Nov 13, 2024

Hello :)

While playing with your great package I stumbled upon what I believe is a bug. I fixed some of it in this PR (at least it behaves better locally) but I am pretty sure there could be more I haven't fixed.

The basic issue is not using the breakpoints and grid_columns settings from PictureField in the {% picture %} templatetag and related utilities. Instead the global settings are always used. If I understand the intention of the code correctly that is not supposed to happen.

I still import settings to make the unit tests work, I am sure you have a better way of doing that, feel free to edit.

Let me know if you have questions 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant