def _get_model_field(self, name: str):
field_name = self._normalize_field_name(name)<EOL>if field_name == '<STR_LIT>' and self.query.model._meta.pk:<EOL><INDENT>return self.query.model._meta.pk<EOL><DEDENT>for field in self.query.model._meta.local_concrete_fields:<EOL><INDENT>if field.name == field_name or field.column == field_name:<EOL><INDENT>return field<EOL><DEDENT><DEDENT>return None<EOL>
Gets the field on a model with the specified name.

        Arguments:
            name:
                The name of the field to look for.

                This can be both the actual field name, or
                the name of the column, both will work :)

        Returns:
            The field with the specified name or None if
            no such field exists.