On 23 déc, 11:23, MikeKJ <mike.jo...@paston.co.uk> 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 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.

Reply via email to