re phrased heading as this is the real problem
model:
data = models.TextField(help_text='This is the embedding popup code for the
video', null=True, blank=True)
method:
def data(self):
return self.data
data.allow_tags = True
template:
{% for v in x %}
{{ v.data|safe }}
{% endfor %}
result:
<bound method Video.data of <Video: Part 1 >>
o/p on screen:
>
what I actually want is the output of data as html
what am I missing here?
--
View this message in context:
http://old.nabble.com/text-in-via-model-html-out-in-template-tp30520062p30520062.html
Sent from the django-users mailing list archive at Nabble.com.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.