t; To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>
>
--
View
lt:
> 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
Sen
On 23 déc, 11:29, Daniel Roseman wrote:
>
> You have two attributes on your model called 'data'. One is the field, and
> one is a method.
Nope, there's only one : the method. You *can not* have two attributes
by the same name in a class - since attributes are stored in dict
(actually a DictPro
On 23 déc, 11:23, 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(self):
Look no further - this method shadows the instance attribu
On Thursday, December 23, 2010 10:23:40 AM UTC, 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(self):
> return self.data
>
.data|safe }}
{% endfor %}
result:
>
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 archi
6 matches
Mail list logo