Groups
Groups
Sign in
Groups
Groups
Django users
Conversations
About
Send feedback
Help
Add variable value in render field in django template
78 views
Skip to first unread message
Rajshree Some
unread,
Nov 20, 2020, 10:04:08 AM
11/20/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Hi Users,
I have a value in variable occurence counter and I want to pass this value in this render field .Can anyone help it?
{%
render_field
class
+=
'form-control'
data-id
=
"occurence_counter "
%}
Naresh Jonnala
unread,
Nov 23, 2020, 8:20:35 AM
11/23/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Based on URL structure, find suitable template tag to move forwered.
https://docs.djangoproject.com/en/3.1/ref/templates/builtins/#url
Reply all
Reply to author
Forward
0 new messages