(cls, attr: str, display: bool = True)
| 186 | |
| 187 | @classmethod |
| 188 | def _get_fields_attr(cls, attr: str, display: bool = True): |
| 189 | ret = [] |
| 190 | for field in cls.get_fields(): |
| 191 | if display and isinstance(field.display, displays.InputOnly): |
| 192 | continue |
| 193 | ret.append(getattr(field, attr)) |
| 194 | return ret or cls.model._meta.db_fields |
| 195 | |
| 196 | @classmethod |
| 197 | def get_fields_name(cls, display: bool = True): |
no test coverage detected