MCPcopy
hub / github.com/django/django / get_readonly_fields

Method get_readonly_fields

django/contrib/admin/options.py:464–468  ·  view source on GitHub ↗

Hook for specifying custom readonly fields.

(self, request, obj=None)

Source from the content-addressed store, hash-verified

462 return self.ordering or () # otherwise we might try to *None, which is bad ;)
463
464 def get_readonly_fields(self, request, obj=None):
465 """
466 Hook for specifying custom readonly fields.
467 """
468 return self.readonly_fields
469
470 def get_prepopulated_fields(self, request, obj=None):
471 """

Callers 6

get_fieldsMethod · 0.95
get_formsetMethod · 0.45
get_formMethod · 0.45
get_inline_formsetsMethod · 0.45
_changeform_viewMethod · 0.45
get_formsetMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected