def get_readonly_fields(self, request, obj=None):
        return list(self.readonly_fields) + \
               [field.name for field in obj._meta.fields]
Set all fields readonly.
dataset/ETHPy150Open Koed00/django-q/django_q/admin.py/TaskAdmin.get_readonly_fields