'result' cannot be specified for MyTaskResult model form as it is a non-editable field. Check fields/fieldsets/exclude attributes of class MyTaskResultAdmin. #394
If I use a proxy model and register MyTaskResultAdmin inherited from TaskResultAdmin,
will show the error above
found in django_celery_results.admin.TaskResultAdmin.get_readonly_fields
def get_readonly_fields(self, request, obj=None):
if ALLOW_EDITS:
return self.readonly_fields
else:
return list({
field.name for field in self.opts.local_fields # will return [] even readonly_fields is set, which leads to the error
# field.name for field in self.model._meta.fields # Change to this fix the problem, but I'm not sure if this is the correct way
})
If I use a proxy model and register MyTaskResultAdmin inherited from TaskResultAdmin,
will show the error above
found in
django_celery_results.admin.TaskResultAdmin.get_readonly_fields