changed as below
but still not getting html out just text
MikeKJ wrote:
>
> 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_chunk(self):
> return self.data
> data_chunk.allow_tags = True
>
> tried this as well as data = cat.data
> view:
> cat = Category,objects.get(pk=cat_id)
> data=cat.data_chunk()
>
> template:
> {{ data|safe }}
>
>
>
> result:
> text on screen not html
>
> o/p on screen:
> text
>
> 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-tp30520062p30521999.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.