Comments (1)
@FelipeFranke5 This is not limited to this library's template tag, but a general limitation of Django's template syntax, you cannot create nested {% %}
tags. You can however read the result of a tag into a template variable and use this in another one:
{% url 'some_app:validate_age' as validate_age_url %}
{% render_field form.name hx-post=validate_age_url [...] %}
from django-widget-tweaks.
Related Issues (20)
- Is it possible to add is-valid class after validation HOT 3
- Do there any blockers to bump new release? HOT 13
- Test-Suite missing in tarball HOT 1
- How to use Django template variable on attr or set_data HOT 4
- setting size of a field by accessing the model field max_length HOT 1
- accessing variables in render_field tag HOT 2
- setup.py should specify python_requires HOT 1
- Can not find module name in Django installed App HOT 5
- add another filter add_valid_class?
- WIDGET_ERROR_CLASS and WIDGET_REQUIRED_CLASS via settings HOT 1
- removing "required" from form-check-input
- Does it work on FileField? HOT 2
- widget_tweaks causes 'DeprecationWarning: pkg_resources is deprecated as an API' HOT 1
- _pickle.PicklingError: Cannot pickle ResolverMatch. HOT 1
- Releasing a new version with Django 4.2 support HOT 2
- pkg_resources error in django-widget-tweaks after upgrading to Python 3.12 on my distro (Fedora 39) HOT 2
- render_field type date doesn't respect django settings
- [REQUEST] Have an option to use BoundField.render() instead of str(bounded_field)
- how to hook into render_field from request
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-widget-tweaks.