Re: Adding a attribute to a model property

2017-06-08 Thread Bernd Wechner
Melvyn, Aha, thanks for the insight. Found it at last. "Property" is an amazingly difficult word to search for as it happens. Still my problem remains. But this: "Changed in version 3.5: The docstrings of property objects are now writeable." is hopeful. Suggesting if the docstring can be wri

Re: Adding a attribute to a model property

2017-06-08 Thread Melvyn Sopacua
On Thursday 08 June 2017 16:18:42 Bernd Wechner wrote: > This works charmingly. Though I admit I don't fully understand it. The > type "property" passed to isinstance seems to be a built in type as I > don't import it anywhere and I can't find a definition (I use PyDev > and it brilliantly lets me

Adding a attribute to a model property

2017-06-07 Thread Bernd Wechner
I'm a tad stuck getting my head around decorating a decorator and how to do this well. But here is a proforma model: class Thing(models.Model): my_field = models.CharField('My Field') @property def my_property(self) do stuff ... return so