You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like everywhere else calls field.value() except this file, which just uses value like a property. This causes fields like ImageField to render incorrectly. Am I using it wrong or is this an error?
Looks like changing it to field.value().url and field.value().name works.
The text was updated successfully, but these errors were encountered:
Looks like changing it to field.value().url and field.value().name works.
Accessing methods with () like in field.value().url doesn't look like valid django template (DTL) code to me. The crispy-form templates are based upon using the DTL. Your example looks to me like it could be Jinja2?
It seems to work for me when using the crispy-test-project, but I could be looking at it wrong.
If you could share a minimal reproduction that would be helpful.
Looks like everywhere else calls
field.value()
except this file, which just uses value like a property. This causes fields likeImageField
to render incorrectly. Am I using it wrong or is this an error?Looks like changing it to
field.value().url
andfield.value().name
works.The text was updated successfully, but these errors were encountered: