On 31/07/2020 4:24 pm, Derek wrote:
> Apologies for lack of proof reading; the example code should be:
>
>
> def _name(self, obj):
> return '%s' % obj.name
> _name.admin_order_field = 'sort_name'
>
>
> On Friday, 31 July 2020 08:21:45 UTC+2, Derek wrote:
>
> I've had to do somet
Apologies for lack of proof reading; the example code should be:
def _name(self):
return '%s' % self.name
_name.admin_order_field = 'sort_name'
On Friday, 31 July 2020 08:21:45 UTC+2, Derek wrote:
>
> I've had to do something similar to handle species.
>
> I'd suggest breaking "
I've had to do something similar to handle species.
I'd suggest breaking "pure" database design and creating a new field - say,
"sort_name". This is created "on save" (obviously you can run a script to
quickly generate this field's values for all existing records). You don't
show "sort_name"
3 matches
Mail list logo