solution found and I apologise for this
I forgot to mention that the input to the field was (note was) a tiny-mce
textfield and in doing that it escaped the html into the database and that
was the cause of oozlum bird effect.



bruno desthuilliers-7 wrote:
> 
> 
> 
> On 23 déc, 11:23, MikeKJ <[email protected]> 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 attribute. Since
> everything in Python is an object - classes, functions and methods
> included -, there's no notion of "data attribute" vs "method", you
> only have attributes, all living in the same namespace.
> 
>>         return self.data
>>     data.allow_tags = True
> 
> The solution is simple: rename either your model field or the method.
> 
> -- 
> 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.
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/text-in-via-model-html-out-in-template-tp30520062p30523047.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.

Reply via email to