Thanks Federico, it did solved the problem.
On Fri, Apr 17, 2020 at 6:28 AM 'Federico Capoano' via Django users <
django-users@googlegroups.com> wrote:
> Is this the kind of thing you're looking for?
>
> https://github.com/openwisp/openwisp-firmware-upgrader/tree/1e9fa26d75a48ae9274c2708ea9a101
Is this the kind of thing you're looking for?
https://github.com/openwisp/openwisp-firmware-upgrader/tree/1e9fa26d75a48ae9274c2708ea9a10134a2bb9d0/openwisp_firmware_upgrader/base/admin.py#L150-L186
Fed
On Wednesday, April 15, 2020 at 4:15:48 PM UTC-5, Gagan Deep wrote:
>
> Greetings of the day,
Greetings of the day,
I have defined a model admin inheriting from admin.ModelAdmin class. There
is one of the fields which I want to show on the admin dashboard which is a
function. I read in Django docs that for a callable function to be a field,
it should be added in readonly_fields. So far
3 matches
Mail list logo